views:

352

answers:

1

The error I get is this

"C:\CUDA\bin\nvcc.exe"    -arch sm_10 -ccbin "C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" -deviceemu -D_DEVICEEMU   -Xcompiler "/EHsc /W3 /nologo /Od /Zi   /MTd  " -I"C:\CUDA\include" -I"../../common/inc" -maxrregcount=32  --compile -o "Debug\matrixMul.cu.obj" "c:\Documents and Settings\All Users.SYSROOT\Application Data\NVIDIA Corporation\NVIDIA GPU Computing SDK\C\src\matrixMul\matrixMul.cu" 
nvcc fatal   : Could not open input file C:\DOCUME~1\Murali_Krishna05\Local Settings\Temp/tmpxft_000008cc_00000000-1

i dont have cuda enabled graphics card in my machine and hence running it in device emulation mode using VS-2008. But it shows the file is successfully compiled but it is unable to execute and the error I get is

Error   1   fatal error LNK1181: cannot open input file '.\Debug\matrixMul.cu.obj'  matrixMul   matrixMul
+1  A: 

I solved it by replacing the environmental varialble "TEMP=%USERPROFILE%\Local Settings\Temp" by "TEMP=%SystemRoot%\TEMP".

emkrish