I am new to CUDA and have successfully running programs/ executing kernels using VS 2010. However, I am finding it difficult to step inside kernels executed on the device (GPU). Can someone please tell me how to enable the “emu - debug” mode in Visual studio to step into kernels and see the details. I am getting an exception somewhere in the program due to kernel execution.
Step wise instruction will be really useful.
Thanks in advance.
Regards,
Shyam B
(My environment is Windows 7, I7 Processor and is GPU enabled, CUDA 4.0)
EMU mode is supported by earlier version CUDA 2.3
In console command you have to simply add -deviceemu option.
like “$(CUDA_BIN_PATH)\nvcc.exe” –deviceemu --use_fast_math -ccbin “$(VCInstallDir)bin” -c -DWIN32 -D_CONSOLE -D_MBCS -Xcompiler /EHsc,/W3,/nologo,/Wp64,/O2,/Zi,/MD -I"$(CUDA_INC_PATH)" -I./ -I./kernel -I./inc -I…/inc -o $(ConfigurationName)\cuSVMPredictKernel.obj cuSVMPredictKernel.cu