Certain samples fail with 'no device supporting CUDA'

Hi,

I installed the CUDA SDK and toolkit, taking special care that kext was enabled, set the environment variables on bash_profile and restarted my MacBook Pro. After I restarted, I tried some of the examples. To my satisfaction, the deviceQuery worked fine. But some of the examples failed stating ‘There is no device supporting CUDA’ , while some fail with ‘bus error’ . So, I reinstalled the toolkit, again making sure the kext is checked, and restarted again. But the examples still don’t run.


[codebox]me@mymachine $ ./deviceQuery

There is 1 device supporting CUDA

Device 0: “GeForce 8600M GT”

Major revision number: 65536

Minor revision number: 1

Total amount of global memory: 268238848 bytes

Total amount of constant memory: 337500 bytes

Total amount of shared memory per block: 16384 bytes

Total number of registers available per block: 8192

Warp size: 32

Maximum number of threads per block: 512

Maximum sizes of each dimension of a block: 512 x 512 x 64

Maximum sizes of each dimension of a grid: 65535 x 65535 x 1

Maximum memory pitch: 262144 bytes

Texture alignment: 256 bytes

Clock rate: 1 kilohertz

Test PASSED

Error when parsing command line argument string.

Press ENTER to exit…

me@mymachine $ ./simpleCUFFT

There is no device supporting CUDA.

me@mymachine $ ./dwtHaar1D

There is no device supporting CUDA.

me@mymachine $ ./cppIntegration

There is no device supporting CUDA.

me@mymachine $ ./boxFilter

Error when parsing command line argument string.

Error when parsing command line argument string.

Bus error

me@mymachine $ ./imageDenoising

Allocating host and CUDA memory and loading image file…

Bus error[/codebox]


My specs are as follows :

Mac Book Pro - OSX 10.5.5

8600M GT


me@mymachine $ nvcc --version

nvcc: NVIDIA ® Cuda compiler driver

Copyright © 2005-2007 NVIDIA Corporation

Built on Wed_Jul_16_12:14:50_PDT_2008

Cuda compilation tools, release 2.0, V0.2.1221


Please help me get this up and running.

Thanks,

Sahil

i am having a similar problem. I’ve got a previous generation of mac book pro with the same info. osx 10.5.5…

me$ nvcc --version
nvcc: NVIDIA ® Cuda compiler driver
Copyright © 2005-2007 NVIDIA Corporation
Built on Wed_Jul_16_12:14:50_PDT_2008
Cuda compilation tools, release 2.0, V0.2.1221

me$ ./deviceQuery
There is no device supporting CUDA.

Device 0: “Device Emulation (CPU)”
Major revision number: 9999
Minor revision number: 9999
Total amount of global memory: 4294967295 bytes
Number of multiprocessors: 16
Number of cores: 128
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 8192
Warp size: 1
Maximum number of threads per block: 512
Maximum sizes of each dimension of a block: 512 x 512 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 262144 bytes
Texture alignment: 256 bytes
Clock rate: 1.35 GHz
Concurrent copy and execution: No

Test PASSED

Press ENTER to exit…

randomly some of the examples will run but they get all wonky slow (because i guess it shows i have no cuda device) also on launching it says somthing along the lines of …
Using device 0: Device Emulation (CPU)
which i’m guessing it shouldn’t… thoughts?

D’oh i feel stupid. so you do need to hit custom install and install that CUDA.kext i donno why i did not see that before. my bad.

Hi SurviveStyle, I noticed your issue was resolved by selecting CUDA.kext. My issue turned out to be different actually. I was installed CUDA 2.0 and running samples from 1.5. A few of them ran into issues.

  • Sahil

did you fairly put environments variables so your PATH contains /usr/local/cuda/bin, your LD_LIBRARY_PATH contains /usr/local/cuda/lib and your DYLD_LIBRARY_PATH contains /usr/local/cuda/lib ?