Hi,
I upgraded to CUDA 3.2 32bit and am experiencing a problem.
An exception is thrown before the application arrives at _tmain().
if I ignore the exception the program runs on.
Using the Nsight analyzer I noticed that the exception is thrown when cuCtxAttach is called and returns a INVALID_CONTEXT error.
in my app I use cudart.lib and cufft.lib (and never the driver API) so this call looked weird to me…
the same code did not throw this exception under CUDA 3.0.
does anyone have any idea why this exception is thrown?
I’m developing in vs2008, windows 7 64bit, cuda 3.2 toolkit 32bit
the stack on the exception is:
KernelBase.dll!7683b727()
[Frames below may be incorrect and/or missing, no symbols loaded for KernelBase.dll]
KernelBase.dll!7683b727()
cudart32_32_16.dll!002b0483()
cudart32_32_16.dll!0028f5ae()
cudart32_32_16.dll!002a64c2()
cudart32_32_16.dll!002b0c6c()
cudart32_32_16.dll!002b0b5e()
cudart32_32_16.dll!00289f66()
cufft32_32_16.dll!00a16b30()
cufft32_32_16.dll!00a16bbb()
cufft32_32_16.dll!00a15803()
cufft32_32_16.dll!00a1591d()
cufft32_32_16.dll!00a159d8()
ntdll.dll!773b97a0()
ntdll.dll!773bd749()
ntdll.dll!773bde27()
ntdll.dll!773c6a3e()
ntdll.dll!773c5947()
ntdll.dll!773b9cc9()
device query:
CUDA Device Query (Runtime API) version (CUDART static linking)
There are 2 devices supporting CUDA
Device 0: “GeForce GTX 480”
CUDA Driver Version: 3.20
CUDA Runtime Version: 3.20
CUDA Capability Major/Minor version number: 2.0
Total amount of global memory: 1576599552 bytes
Multiprocessors x Cores/MP = Cores: 15 (MP) x 32 (Cores/MP) = 480 (Cores)
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 32768
Warp size: 32
Maximum number of threads per block: 1024
Maximum sizes of each dimension of a block: 1024 x 1024 x 64
Maximum sizes of each dimension of a grid: 65535 x 65535 x 1
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Clock rate: 1.40 GHz
Concurrent copy and execution: Yes
Run time limit on kernels: No
Integrated: No
Support host page-locked memory mapping: Yes
Compute mode: Default (multiple host threads can use this device simultaneously)
Concurrent kernel execution: Yes
Device has ECC support enabled: No
Device is using TCC driver mode: No
Device 1: “Quadro FX 380”
CUDA Driver Version: 3.20
CUDA Runtime Version: 3.20
CUDA Capability Major/Minor version number: 1.1
Total amount of global memory: 247005184 bytes
Multiprocessors x Cores/MP = Cores: 2 (MP) x 8 (Cores/MP) = 16 (Cores)
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: 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: No
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 = 2, Device = GeForce GTX 480, Devi
ce = Quadro FX 380
any help will be appreciated!
thanks,
eldad.