Problem with compilation

Hi,

I am a beginner with CUDA programming.
I’ve installed CUDA toolkit and SDK 3.0.
I’m using Microsoft Visual studio 2008 on windows Vista 32 bit.
I’m using CUDA VS Wizard 2.2 beta 1 created template to create the project.
I’m trying to get a simple program running, given on [http://llpanorama.wordpress.com/2008/05/21/my-first-cuda-program/]

I am using EmuDebug mode since I don’t have a GPU on my laptop.
The project compiles successfully but it produces wrong result.
There are problems executing cuda related commands.

Here’s the log,

‘CUDAWinApp1.exe’: Loaded ‘D:\GPU\trialcuda\CUDAWinApp1\EmuDebug\CUDAWinApp1.exe’, Symbols loaded.
‘CUDAWinApp1.exe’: Loaded ‘C:\Windows\System32\ntdll.dll’
‘CUDAWinApp1.exe’: Loaded ‘C:\Windows\System32\kernel32.dll’
‘CUDAWinApp1.exe’: Loaded ‘C:\CUDA\bin\cudart32_30_14.dll’, Binary was not built with debug information.
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af674…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af6d0…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af670…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af6cc…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af660…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af6bc…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af670…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af6cc…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af678…
First-chance exception at 0x769d42eb in CUDAWinApp1.exe: Microsoft C++ exception: cudaError at memory location 0x002af6d4…

Please help me resolve the problem.

Thanks,
Edesign

Hi,

I’ve got the same problem. It occurs only under emudebug whereas my program compiles fine in release mode.
There is nothing into the called kernel. I just make a call from my cu file.

Thanks

It doesnt run in any mode either. It says this :

Loaded 'C:\CUDA\bin\cudart32_30_14.dll', Binary was not built with debug information.

And the application exits with code 0.

We have migrated the project from 2005 to 2008 VS. And compiling under Win XP and NVIDIA CUDA 3.0, in a box having NVIDIA GeForce 8600 GT.

Driver Version : 197.13.

What’s wrong or missing here? :confused:

Thanks in advance.

Regards,

-Shyam

Hi,

My problem is not resolved: i can’t execute my program when i compile it with -device-emu option.
So i compile without it and i don’t debug onto gpu. I always create a sequential algorithm tham emulates the GPU algorithm,
and when it is fixed, i compute on gpu without problem until then.

nb: a warning adverts --device-emulation-- will be deprecated…

good luck

ciao
pietro

Hi,

My problem is not resolved: i can’t execute my program when i compile it with -device-emu option.
So i compile without it and i don’t debug onto gpu. I always create a sequential algorithm tham emulates the GPU algorithm,
and when it is fixed, i compute on gpu without problem until then.

nb: a warning adverts --device-emulation-- will be deprecated…

good luck

ciao
pietro