Errror when compiling CUDA 3.1 SDK on Macbook (snow Leopard) Emulation mode only no CUDA supported d

Uninstalled previous CUDA versions using

[codebox]sudo kextunload /System/Library/Extensions/CUDA.kext

cd /Library/Frameworks/

sudo rm -rf CUDA.framework

cd /System/Library/Extensions/

sudo rm -rf CUDA.kext

cd /Library/LaunchAgents/

sudo rm -rf com.nvidia.CUDASoftwareUpdate.plist

cd /Library/PreferencePanes/

sudo rm -rf “CUDA Preferences.prefPane/”

cd /System/Library/StartupItems/

sudo rm -rf CUDA

cd /usr/local/

sudo rm -rf cuda[/codebox]

Installed the CUDA 3.1 toolkit followed by CUDA3.1.10 driver and then SDK as per [post=“0”]CUDA 3.1 release notes[/post]

GCC version is

[codebox]$ gcc -v

Using built-in specs.

Target: i686-apple-darwin10

Configured with: /var/tmp/gcc/gcc-5664~38/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/usr/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/[1][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --with-gxx-include-dir=/usr/include/c++/4.2.1 --host=i686-apple-darwin10 --target=i686-apple-darwin10

Thread model: posix

gcc version 4.2.1 (Apple Inc. build 5664)[/codebox]

SDK path compilation looks like this:

[codebox]$ make emu=1

a - obj/i386/release/bank_checker.cpp.o

a - obj/i386/release/cmd_arg_reader.cpp.o

a - obj/i386/release/cutil.cpp.o

a - obj/i386/release/stopwatch.cpp.o

a - obj/i386/release/stopwatch_linux.cpp.o

a - obj/i386/release/multithreading.cpp.o

a - obj/i386/release/paramgl.cpp.o

a - obj/i386/release/param.cpp.o

a - obj/i386/release/rendercheck_gl.cpp.o

src/shrUtils.cpp: In function ‘int shrLogV(int, int, const char*, char*)’:

src/shrUtils.cpp:399: warning: format not a string literal and no format arguments

src/shrUtils.cpp:403: warning: format not a string literal and no format arguments

src/shrUtils.cpp:406: warning: format not a string literal and no format arguments

./…/shared//inc/shrUtils.h: At global scope:

./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used

./…/shared//inc/shrUtils.h:55: warning: ‘nGpuArchCoresPerSM’ defined but not used

a - obj/i386/release/shrUtils.cpp.o

a - obj/i386/release/rendercheckGL.cpp.o

a - obj/i386/release/cmd_arg_reader.cpp.o

make -C src/alignedTypes/

sh: /usr/local/cuda/bin/…/open64/bin/nvopencc: Bad CPU type in executable

make[1]: *** [obj/i386/emurelease/alignedTypes.cu.o] Error 126

make: *** [src/alignedTypes/Makefile.ph_build] Error 2

[/codebox]

Also, I have the correct paths in my .profile

[codebox]export PATH=/usr/local/cuda/bin:/usr/texbin:/opt/local/bin:/opt/local/sbin:/opt/local/include:$PATH

export DYLD_LIBRARY_PATH=/usr/local/cuda/lib:/usr/local/lib:$DYLD_LIBRARY_PATH[/codebox]

Any suggestions?? Does everyone have this issue with 3.1?? Should I downgrade to 3.0??

Thanks in advance


  1. cg ↩︎

Still not able to make CUDA 3.1 work on MacBook

Still not able to make CUDA 3.1 work on MacBook

Still not able to make CUDA 3.1 work on MacBook

Still not able to make CUDA 3.1 work on MacBook

According to the CUDA 3.1 release notes, “Device emulation has been removed”. You might have more luck compiling for the device, which works for me.

According to the CUDA 3.1 release notes, “Device emulation has been removed”. You might have more luck compiling for the device, which works for me.

I don’t have a device on the Laptop. so does that mean I cannot compile?

I don’t have a device on the Laptop. so does that mean I cannot compile?

You can compile, but you cannot execute. Unless you use an emulator, like Ocelot or Barra. I’d recommend those over device emulation anyway.

You can compile, but you cannot execute. Unless you use an emulator, like Ocelot or Barra. I’d recommend those over device emulation anyway.

Hi,

I remember reading somewhere that device emulation was no longer supported under CUDA 3.1.

You will probably want to downgrade to CUDA 3.0

Good luck!

Hi,

I remember reading somewhere that device emulation was no longer supported under CUDA 3.1.

You will probably want to downgrade to CUDA 3.0

Good luck!