weird exception

I have a correct cuda project, which could run on my another machine for sure.

But for my personal desktop, after debugging this project for several times with small change (change n from 16 to 48, both work for my another machine), I can not run it correctly, the debug information is :

NVAPI: bLhThunkInit: failed assert: lhThunk.pfnGetDisplayConfigBufferSizes
NVAPI: bLhThunkInit: failed assert: lhThunk.pfnQueryDisplayConfig
NVAPI: bLhThunkInit: failed assert: lhThunk.pfnSetDisplayConfig
NVAPI: bLhThunkInit: failed assert: lhThunk.pfnDisplayConfigGetDeviceInfo
First-chance exception at 0x770d42eb in mytestProj.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012faf4…
First-chance exception at 0x770d42eb in mytestProj.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012faf4…
First-chance exception at 0x770d42eb in mytestProj.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012f924…
First-chance exception at 0x770d42eb in mytestProj.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012f924…

after about 30 mins, I try one more time it can run with no errors again. but after several runs, it can not run again. so weird… :wacko:

I use Galaxy GTS 250 512MB and VS2008 for my desktop.

Anyone has any idea about it? thanks

Hello Pilot,

I am using CUDA 2.2 and I also have a GTS250 512, and I am having the same problem as you:

First-chance exception at 0x7c812aeb in MyTemplate.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdc8…

First-chance exception at 0x7c812aeb in MyTemplate.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdc8…

First-chance exception at 0x7c812aeb in MyTemplate.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdd0…

Sometimes the function works, sometiimes not…

Did u solve ur problem?

if u have any idea about what’s happening, tell me pls…

Which driver are you using?

N.

No.

In fact, I run the volkov’s matrix decomposition code. It returns these kind of messages. By checking step by step, I found it fails at cuda memory allocation function.

My home desktop is using vista32bit. I dont know whether it is due to the os or hardware problem.

Driver is NVIDIA Driver for Windows Vista 32-bit 185.85

CUDA2.2 plus vista 32bit os

I have the same driver and OS and I also have these messages:

[codebox]

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…

First-chance exception at 0x77bffbae in GeoD.exe: Microsoft C++ exception: cudaError_enum at memory location 0x0012fdb0…[/codebox]

Does anybody know what is going on with this?

Thanks.