My project uses cublas and my own kernels to make a number of Linear Algebra calculations, and for the first time I am getting a mysterious error when I exit main(not before). This is the output;
First-chance exception at 0x000007fef51006c2 in gpu_admm.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
Unhandled exception at 0x000007fef51006c2 in gpu_admm.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
The program ‘[1336] gpu_admm.exe: Native’ has exited with code -1073741819 (0xc0000005).
It seems to be memory related, and visual studio takes me to the host_runtime.h file with the cursor pointing to this area of code;
static void **__cudaFatCubinHandle;
static void __cdecl __cudaUnregisterBinaryUtil(void)
{
__cudaUnregisterFatBinary(__cudaFatCubinHandle);
}
I am using Visual Studio 2010 x64(Windows 7), with the most recent version of CUDA and CUBLAS. The is the first strange error I have seen, and I check error codes for all device-host memory operations and all cublas operations through the run, which do not produce any errors. After the message appears the console gets stuck and I have to close Visual Studio.
Any ideas of what may be going on?