Hello nvidia cuda forums!!
I’m new to parallel processing, and new to cuda. So, here goes…
Sometimes the cuda device/driver is not recognized. In most cases, I see a message similar to the one that I see when running deviceQuery.
[indent]CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount FAILED CUDA Driver and Runtime version may be mismatched.
FAILED
[/indent]
Here’s what I see when running bandwidthTest
[indent]bandwidthTest.cu(598) : cudaSafeCall() Runtime API error : no CUDA-capable device is detected.[/indent]
What’s interesting is that some cuda example programs run just fine all the time (ie nbody, smokeParticles, etc), regardless whether or not deviceQuery works or not.
Okay, here’s the intersting part. If I close my Mac Pro laptop and reopen and rerun deviceQuery. I see the following:
[indent]There is 1 device supporting CUDA
Device 0: “GeForce GT 330M”
CUDA Driver Version: 3.20
CUDA Runtime Version: 3.20
CUDA Capability Major/Minor version number: 1.2
Total amount of global memory: 536543232 bytes
Multiprocessors x Cores/MP = Cores: 6 (MP) x 8 (Cores/MP) = 48 (Cores)
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 16384 bytes
Total number of registers available per block: 16384
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: 2147483647 bytes
Texture alignment: 256 bytes
Clock rate: 1.10 GHz
Concurrent copy and execution: Yes
Run time limit on kernels: Yes
Integrated: No
Support host page-locked memory mapping: Yes
Compute mode: Default (multiple host threads can use this device simultaneously)
Concurrent kernel execution: No
Device has ECC support enabled: No
Device is using TCC driver mode: No
deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 3.20, CUDA Runtime Version = 3.20, NumDevs = 1, Device = GeForce GT 330M
PASSED[/indent]
Now, everything is great, right?!?!? No. If I immediately rerun deviceQuery. I get the following:
[indent]CUDA Device Query (Runtime API) version (CUDART static linking)
cudaGetDeviceCount FAILED CUDA Driver and Runtime version may be mismatched.
FAILED
[/indent]
Any thoughts on my struggles?
Thanks for your help!!
rickyn
general I see this message