Gwinel / likwid

Automatically exported from code.google.com/p/likwid
GNU General Public License v3.0
0 stars 0 forks source link

Make Problem #125

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Uname Info - 2.6.32-55-generic #117-Ubuntu SMP Tue Dec 3 17:34:52 UTC 2013 i686 
GNU/Linux
Processor - Intel Core 2 Quad 9400
GCC Version - gcc version 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)

Did a Make, following errors are there.

Excerpt - 
-------------------------------------------------------------------
===>  GENERATE BENCHMARKS
===>  ASSEMBLE  GCC/clcopy.o
./GCC/clcopy.s: Assembler messages:
./GCC/clcopy.s:26: Error: too many memory references for `mov'
./GCC/clcopy.s:32: Error: too many memory references for `xor'
./GCC/clcopy.s:43: Error: ambiguous operand size for `add'
./GCC/clcopy.s:44: Error: too many memory references for `cmp'
./GCC/clcopy.s:52: Error: too many memory references for `mov'
make: *** [GCC/clcopy.o] Error 1
-------------------------------------------------------------------

Please Look into it.

Anyways good project though. Cheers.

Original issue reported on code.google.com by subodh.c...@gmail.com on 6 Feb 2014 at 1:44

GoogleCodeExporter commented 9 years ago
One more point I would like to mention, I tried this same source on multiple 
systems with Ubuntu 12.04, different gcc versions, still error remains the same.

Original comment by subodh.c...@gmail.com on 6 Feb 2014 at 1:48

GoogleCodeExporter commented 9 years ago
Hi,

you are on a 32bit system. I will check that.
Could you sent me the generated clcopy.s file. It is located in ./GCC/ .
That would help me a lot. But I  think I already know what is going wrong.

Thanks for the report!

Jan

Original comment by jan.trei...@gmail.com on 6 Feb 2014 at 1:52

GoogleCodeExporter commented 9 years ago
Ok, Attaching clcopy.s.

On the other hand, I am trying to disable hardware prefetcher on Intel Core 2 
Duo 9400.

sudo ./rdmsr -p 0 0x1a0 reveals 
4366972489

then I do

sudo ./wrmsr -p 0 0x1a0 4366972289, executes successfully. 

But still I think hardware prefetcher is not disabled, also when I try to set 
this value for all cores, OS hangs after 3 core.

any thoughts on this?  

Original comment by subodh.c...@gmail.com on 6 Feb 2014 at 2:03

Attachments:

GoogleCodeExporter commented 9 years ago
Hi,

you can give likwid-features a try. It should work for Core2 to toggle 
prefetchers.

Register 0x1A0  is correct, and the bits for Core 2 are:

IP Prefetcher   bit 39
Hardware Prefetcher bit 9
Adjacent Cache Line Prefetch  bit 19
DCU Prefetcher  bit 37

I think you toggle a bunch of other bits in your write. No idea what those are 
doing. Newer processors may have other bits, but I did not implement it as they 
are (at least not officially) documented.

Regards,

Jan

Original comment by jan.trei...@gmail.com on 7 Feb 2014 at 8:05

GoogleCodeExporter commented 9 years ago
Hi,

on 32bit systems you have to pick the GCCX86 compiler target. Can you try if 
this fixes your problems? Sorry that this is not documented yet.

Original comment by jan.trei...@gmail.com on 8 Feb 2014 at 2:08

GoogleCodeExporter commented 9 years ago
Thanks for letting me know. I really appreciate your efforts and quick 
responses.
I will try again in day or two and will let you know the results.

Regards,
Subodh Pachghare
www.thesubodh.com

Original comment by subodh.c...@gmail.com on 13 Feb 2014 at 6:09

GoogleCodeExporter commented 9 years ago
Hi,

Likwid suite compiled and I am able to run it on my system, however some of my 
processor don't support explicit tuning for Prefetcher. I have reported this to 
Intel.

Thanks & Regards,
Subodh Pachghare

Original comment by subodh.c...@gmail.com on 28 Apr 2014 at 4:49

GoogleCodeExporter commented 9 years ago
Hi Subodh,

be aware that Intel regards toggling prefetchers while running as dangerous and 
therefore not publicly supports this feature. From the Intel side this is 
intended to be done by the BIOS only.

Jan

Original comment by jan.trei...@gmail.com on 28 Apr 2014 at 6:24

GoogleCodeExporter commented 9 years ago
Thanks for letting me know, Jan.
I have dropped you a mail on gmail inbox regarding contribution to Likwid, 
please let me know what you think.

Regards,
Subodh

Original comment by subodh.c...@gmail.com on 30 Apr 2014 at 5:53

GoogleCodeExporter commented 9 years ago

Original comment by jan.trei...@gmail.com on 8 May 2014 at 12:31