CUDA 8.0 Samples Not Building Visual Studio 2013

Greetings, I have a fresh install of CUDA 8.0 (went with 8.0 to use with an older project I’m trying to build) and a fresh install of VS 2013 (also have some older versions of VS installed too). When I try to compile one of the CUDA samples (without changes), I get an error:

nvcc fatal : Failed to create the host compiler response file ‘C:\Users\bmerryma\AppData\Local\Temp/tmpxft_0000049c_00000000-18.res’

the output in VS looks like this:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 8.0.targets(689,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\bin\nvcc.exe” -gencode=arch=compute_20,code="sm_20,compute_20" -gencode=arch=compute_30,code="sm_30,compute_30" -gencode=arch=compute_35,code="sm_35,compute_35" -gencode=arch=compute_37,code="sm_37,compute_37" -gencode=arch=compute_50,code="sm_50,compute_50" -gencode=arch=compute_52,code="sm_52,compute_52" -gencode=arch=compute_60,code="sm_60,compute_60" --use-local-env --cl-version 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64” -I./ -I…/…/common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0/include” -I…/…/common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" --keep-dir x64\Release -maxrregcount=0 --machine 64 --compile -cudart static -Xcompiler “/wd 4819” -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler “/EHsc /W3 /nologo /O2 /FS /Zi /MT " -o x64/Release/ “C:\ProgramData\NVIDIA Corporation\CUDA Samples\v8.0\2_Graphics\marchingCubes\”” exited with code 1.

Any direction greatly appreciated!

Solved! On my work network, we’re using McAfee. It was seeing the attempt by NVCC to write a file as a “Wanna Cry” virus signature and blocking the file write.