Problem with device emulation

Hi all,

I’m trying to make a program run in device emulation mode, but it seems not to work.
The program doesn’t return anything reasonable and breakpoints don’t work either.
Is there anything else besides the _deviceemu preprocessor flag I need to take care of?

Maybe it has to do with this output I’m getting:


‘template.exe’: Loaded ‘C:\CUDA\bin\cudart.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\CUDA\bin\cuda.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\WINDOWS\system32\user32.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\WINDOWS\system32\gdi32.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\CUDA\bin\ptxcomp.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\CUDA\bin\fatZip.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\WINDOWS\system32\opengl32.dll’, No symbols loaded.
‘template.exe’: Loaded ‘C:\WINDOWS\system32\msvcrt.dll’, No symbols loaded.

Thanks for your help!

The reason was the nvcc compiler option -Xcuda. I can only guess that this option is used on linux machines. I removed the X and it works now.