I’ve got one strange problem with CUDA runtime functions.
When I call cudaGetDeviceCount() to determine if there are CUDA devices on the system it just kills active thread silently. No error return codes, no exceptions.
I’m seeing this problem only on one PC and only with one program (out of 3, all using same initialization code), so I guess this is a compatibility issue.
Actually my problem isn’t solved yet. I’ve moved it from DllMain(), but it still silently kills thread on first CUDA function. I’ve seen this problem only on one PC, so I still think that this is compatibility issue.