exception (first chance) … cudaError_enum at memory

泄露秘密 提交于 2019-12-07 13:33:41

问题


So I am working on a project which is spitting me out that error, after some research showed that the problem lies with the cublas library.

So now I have the following "minimal" problem:

I opened the simpleCUBLAS example out of the NVIDIA CUDA SDK (4.2) to test if I can reproduce the problem .

the programm itself works but VS2010 gives me a similar output:

Eine Ausnahme (erste Chance) bei 0x75e3c41f in simpleCUBLAS.exe: Microsoft C++-Ausnahme: cudaError_enum an Speicherposition 0x003bf704..

7 times

so to my specs:

I use a GTX 460 for computing, compile with sm_20 use VS2010 on Windows 7 64-bit and nvcc --version gives me:

nvcc: NVIDIA (R) Cuda compiler driver Copyright (c) 2005-2011 NVIDIA Corporation Built on Fri_Jan_13_01:18:37_PST_2012 Cuda compilation tools, release 4.1, V0.2.1221

this is my first time posting here so I apologize for the horrible format it is posted


回答1:


The observation you are making has to do with an exception that is caught and handled properly within the CUDA libraries. It is, in some cases, a normal part of CUDA GPU operation. As you have observed, your application returns no API errors and runs correctly. If you were not within the VS environment that can report this, you would not observe this at all.

This is considered normal behavior under CUDA. I believe there were some attempts to eliminate it in CUDA 5.5. You might wish to try that, although it's not considered an issue either way.



来源:https://stackoverflow.com/questions/14221083/exception-first-chance-cudaerror-enum-at-memory

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!