visual studio 2012 - First-chance exception cudaError_enum at memory location -
i'm getting error when running app visual studio 2012. development specs:
- cuda 5.0
- vs c++ 2012
- quadro k4000
i've seen there other posts related here, here , here none has answer problem. i'm checking return codes cuda api, curand , cublas , returning success. looked in code problem raising , happens when create timer object gpu.
i'm using timer comes cuda sdk
struct gputimer{ cudaevent_t start; cudaevent_t stop; gputimer(){ checkcudaerr( cudaeventcreate(&start) ); checkcudaerr( cudaeventcreate(&stop) ); } ~gputimer(){ checkcudaerr( cudaeventdestroy(start) ); checkcudaerr( cudaeventdestroy(stop) ); } void start(){ checkcudaerr( cudaeventrecord(start, 0) ); } void stop(){ checkcudaerr( cudaeventrecord(stop, 0) ); } float elapsed(){ float elapsed; checkcudaerr( cudaeventsynchronize(stop) ); checkcudaerr( cudaeventelapsedtime(&elapsed, start, stop) ); return elapsed; } }; so in main function have
int main(args) { ... ... ... gputimer t; ... ... } and after line executed get
'app.exe' (win32): loaded 'c:\windows\system32\nvcuda.dll'. module built without symbols. 'app.exe' (win32): loaded 'c:\windows\system32\user32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\gdi32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\lpk.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\usp10.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\msvcrt.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\setupapi.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\cfgmgr32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\rpcrt4.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\advapi32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\sechost.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\oleaut32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\ole32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\devobj.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\shell32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\shlwapi.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\imm32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\msctf.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\dwmapi.dll'. cannot find or open pdb file. 'app.exe' (win32): unloaded 'c:\windows\system32\dwmapi.dll' 'app.exe' (win32): loaded 'c:\windows\system32\nvapi64.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\version.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\wintrust.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\crypt32.dll'. cannot find or open pdb file. 'app.exe' (win32): loaded 'c:\windows\system32\msasn1.dll'. cannot find or open pdb file. first-chance exception @ 0x000007fefda29e5d in app.exe: microsoft c++ exception: cudaerror_enum @ memory location 0x000000000018ea00. //repeated 20 times @ least finally, after launching application saw messages in output console (on vs2012)
'app.exe' (win32): loaded 'c:\program files\nvidia gpu computing toolkit\cuda\v5.0\bin\cudart64_50_35.dll'. module built without symbols. 'app.exe' (win32): loaded 'c:\program files\nvidia gpu computing toolkit\cuda\v5.0\bin\cublas64_50_35.dll'. module built without symbols. 'app.exe' (win32): loaded 'c:\program files\nvidia gpu computing toolkit\cuda\v5.0\bin\curand64_50_35.dll'. module built without symbols. the application runs fine , results fine me know causing errors/exceptions , how solve them, or if should ignore them.
the observation making has exception caught , handled within cuda libraries. is, in cases, normal part of cuda gpu operation. have observed, application returns no api errors , runs correctly. if not within vs environment can report this, not observe @ all.
this considered normal behavior under cuda 5.0. believe there attempts eliminate in cuda 5.5. might wish try that, although it's not considered issue either way.
you might interested in this question/answer.
Comments
Post a Comment