Sir,
I have the following program…
#include <iostream>
#include<cuda_runtime.h>
#include<cuda.h>
#include<conio.h>
__global__ void add( int a, int b, int *c ) {
*c = a + b;
}
int main( void ) {
int c;
int *dev_c;
cudaMalloc( (void**)&dev_c, sizeof(int)));
add<<<1,1>>>( 2, 7, dev_c );
cudaGetErrorString(cudaGetLastError());
cudaMemcpy( &c,dev_c,sizeof(int),cudaMemcpyDeviceToHost );
printf( "2 + 7 = %d\n", c );
cudaFree( dev_c );
getch();
return 0;
}
A program to add two numbers.
But when I execute this, I am getting the following error.
‘cud.exe’: Loaded ‘C:\Users\alex\Desktop\CUDA\cud\Debug\cud.exe’, Symbols loaded.
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\ntdll.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\kernel32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\KernelBase.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v4.0\bin\cudart32_40_17.dll’, Binary was not built with debug information.
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\msvcr100d.dll’, Symbols loaded.
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\nvcuda.dll’, Binary was not built with debug information.
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\user32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\gdi32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\lpk.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\usp10.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\msvcrt.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\advapi32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\sechost.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\rpcrt4.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\sspicli.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\cryptbase.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\setupapi.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\cfgmgr32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\oleaut32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\ole32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\devobj.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\imm32.dll’, Cannot find or open the PDB file
‘cud.exe’: Loaded ‘C:\Windows\SysWOW64\msctf.dll’, Cannot find or open the PDB file
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\nvcuda.dll’
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\setupapi.dll’
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\devobj.dll’
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\oleaut32.dll’
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\ole32.dll’
‘cud.exe’: Unloaded ‘C:\Windows\SysWOW64\cfgmgr32.dll’
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f7cc…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f7bc…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f764…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f7cc…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f7cc…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f79c…
First-chance exception at 0x7513b727 in cud.exe: Microsoft C++ exception: cudaError at memory location 0x0016f7cc…
How can I solve this?
I have CUDA enabled NVIDIA device.
Everything properly installed.
I searched this issue in internet but couldnt find anything useful.
Please help…