samgh1230 / likwid

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

Build for Xeon Phi fails: assembler does not support RDTSCP #132

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. hg clone https://code.google.com/p/likwid/ && cd likwid
2. Set COMPILER=MIC, ACCESSMODE = direct, BUILDDAEMON = false in config.mk
3. make

What is the expected output? What do you see instead?
  Expected: successful build.
  Instead: build fails with the message
    ===>  COMPILE  MIC/bench.o
    /tmp/iccQSRceuas_.s: Assembler messages:
    /tmp/iccQSRceuas_.s:110: Error: `rdtscp' is not supported on `k1om'
    make: *** [MIC/bench.o] Error 1

What version of the product are you using?
  Likwid: hg changeset 539:cefa56b479b6

  Intel Compiler: icc version 14.0.0 (gcc version 4.4.7 compatibility)
  MPSS Version: 3.1.2
  x86_64-k1om-linux-as -version: GNU assembler (GNU Binutils) 2.22.52.20120302

Please provide any additional information below.
  Xeon Phi assembler does not support RDTSCP instruction

Original issue reported on code.google.com by mara...@gmail.com on 14 Feb 2014 at 5:54

GoogleCodeExporter commented 8 years ago
It seems that this is caused by
HAS_RDTSCP = $(shell  /bin/bash -c "cat /proc/cpuinfo | grep -c rdtscp")
in the Makefile. Building is done on a machine that have rdtscp, but we're 
cross compiling in this case.
Changing the above line to HAS_RDTSCP = 0 makes it compile.

Original comment by linden.j...@gmail.com on 31 Mar 2014 at 4:29

GoogleCodeExporter commented 8 years ago

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