Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nbrew

Pages: [1]
1
Any thoughts on getting it to compile on Mac OS X? The requirements are straightforward using homebrew (brew install boost yasm and ensuring cuda toolkit is installed and in my PATH) but building fails for me on the -march and -mtune switches in cpuid.c.

Code: [Select]
$ make -f makefile.osx
llvm-g++ -O3 -I/opt/local/include -march=native -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter  -DMAC_OSX -DMSG_NOSIGNAL=0 -DBOOST_SPIRIT_THREADSAFE -I"/Users/nhyde/Documents/shared/workspace/c/Sandbox/cudapts/src" -I"/Users/nhyde/Documents/shared/workspace/c/Sandbox/cudapts/src"/obj -I"/opt/local/include"  -c -O2  -fpermissive -o obj/cpuid.o cpuid.c
cpuid.c:1: error: bad value (native) for -march= switch
cpuid.c:1: error: bad value (native) for -mtune= switch
make: *** [obj/cpuid.o] Error 1

TIA!

Pages: [1]