Problems with CUDA10 & VS2017 - Build & Clean errors

Hi

I have recently installed Cuda10 alongside VS2017 having previously had earlier versions of CUDA & VS running together on a different machine. There were no errors on installation however when I try to build any of the examples I get the following error

Error MSB3721 The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_60,code=“sm_60,compute_60” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”” exited with code 1. ABC C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets 712

When I run clean I get a similar error

Error MSB3721 The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean” exited with code 1. ABC C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets 889

In both cases the error is being flagged in ‘CUDA 10.0.targets’ but with different line numbers 712 & 889. The configuration data at line 712 is headed CudaCompile. The configuration data at line 889 is also headed CudaCompile although it is preceded in the file by the comment

Having increased the verbosity of the diagnostic output to maximum I can find no initiating NVCC error (extract from file below) when I run build.

Initializing task factory “XamlTaskFactory” from assembly “Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Using “CudaCompile” task from the task factory “XamlTaskFactory”.
1> Task “CudaCompile”
1> Task Parameter:StandardOutputImportance=High
1> Task Parameter:LogStandardErrorAsError=False
1> Task Parameter:CompileOut=x64\Debug\kernel.cu.obj
1> Task Parameter:Include=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include
1> Task Parameter:GenerateRelocatableDeviceCode=False
1> Task Parameter:NvccCompilation=compile
1> Task Parameter:CudaRuntime=Static
1> Task Parameter:NvccPath=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe
1> Task Parameter:RequiredIncludes=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include
1> Task Parameter:TargetMachinePlatform=64
1> Task Parameter:InterleaveSourceInPTX=False
1> Task Parameter:CodeGeneration=arch=compute_60,code=“sm_60,compute_60”
1> Task Parameter:GPUDebugInfo=True
1> Task Parameter:GenerateLineInfo=False
1> Task Parameter:Keep=False
1> Task Parameter:KeepDir=x64\Debug
1> Task Parameter:MaxRegCount=0
1> Task Parameter:PtxAsOptionV=True
1> Task Parameter:
1> Defines=
1> WIN32
1> WIN64
1> _DEBUG
1> _CONSOLE
1> _MBCS
1> Task Parameter:Emulation=False
1> Task Parameter:HostDebugInfo=True
1> Task Parameter:FastMath=False
1> Task Parameter:Optimization=Od
1> Task Parameter:ProgramDataBaseFileName=x64\Debug\vc141.pdb
1> Task Parameter:Runtime=MDd
1> Task Parameter:RuntimeChecks=RTC1
1> Task Parameter:Warning=W3
1> Task Parameter:CommandLineTemplate=“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” [CodeGeneration] --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu [GenerateRelocatableDeviceCode] [Include] [RequiredIncludes] [InterleaveSourceInPTX] [GPUDebugInfo] [GenerateLineInfo] [Keep] [KeepDir] [MaxRegCount] [PtxAsOptionV] [TargetMachinePlatform] [NvccCompilation] [CudaRuntime] [AdditionalOptions] [HostDebugInfo] [Emulation] [FastMath] [Defines] -Xcompiler “/EHsc [Warning] /nologo [Optimization] [ProgramDataBaseFileName] /FS /Zi [RuntimeChecks] [Runtime] [TypeInfo]” [CompileOut] “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”
1> cmd.exe /C “C:\Users\JZ1280\AppData\Local\Temp\tmp73ae53f1da0c4568bee24d57761e74e3.cmd”
1> “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_60,code=“sm_60,compute_60” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”
1>
1> C:\Users\JZ1280\source\repos\ABC\ABC>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_60,code=“sm_60,compute_60” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(712,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_60,code=“sm_60,compute_60” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”” exited with code 1.
1> Done executing task “CudaCompile” – FAILED.
1> Done building target “CudaBuildCore” in project “ABC.vcxproj” – FAILED.
1>
1> Done building project “ABC.vcxproj” – FAILED.
1> Done executing task “MSBuild” – FAILED.
1>Done building target “CudaBuild” in project “ABC.vcxproj” – FAILED.
1>
1>Done building project “ABC.vcxproj” – FAILED.
1>
1>Project Performance Summary:
1> * ms C:\Users\JZ1280\source\repos\ABC\ABC\ABC.vcxproj 1 calls
1> (* = timing was not recorded because of reentrancy)
1>
1>Target Performance Summary:
1> 0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 0 ms _SelectedFiles 1 calls
1> 0 ms BeforeBuildGenerateSources 1 calls
1> 0 ms ResolveReferences 1 calls
1> 0 ms PlatformPrepareForBuild 1 calls
1> 0 ms GetResolvedWinMD 1 calls
1> 0 ms GetReferenceAssemblyPaths 1 calls
1> 0 ms GetFrameworkPaths 1 calls
1> 0 ms ResolveSDKReferences 1 calls
1> 0 ms _GetProjectReferenceTargetFrameworkProperties 1 calls
1> 0 ms _SplitProjectReferencesByFileExistence 1 calls
1> 0 ms BeforeResolveReferences 1 calls
1> 0 ms _PrepareForBuild 1 calls
1> 0 ms _PrepareForReferenceResolution 1 calls
1> 0 ms PrepareProjectReferences 1 calls
1> 1 ms PrepareForCudaBuild 2 calls
1> 1 ms SetTelemetryEnvironmentVariables 1 calls
1> 1 ms ValidateCudaBuild 1 calls
1> 1 ms ResolveAssemblyReferences 1 calls
1> 1 ms AssignProjectConfiguration 1 calls
1> 1 ms ValidateCudaCodeGeneration 1 calls
1> 1 ms ResolveProjectReferences 1 calls
1> 1 ms PreBuildEvent 1 calls
1> 1 ms AfterResolveReferences 1 calls
1> 1 ms AddCudaLinkMetadata 1 calls
1> 1 ms _CheckWindowsSDKInstalled 1 calls
1> 1 ms SetCABuildNativeEnvironmentVariables 1 calls
1> 1 ms BuildGenerateSourcesTraverse 1 calls
1> 1 ms ComputeCudaCompileOutput 1 calls
1> 2 ms ExpandSDKReferences 1 calls
1> 3 ms InitializeCudaProjectProperties 1 calls
1> 3 ms SetBuildDefaultEnvironmentVariables 2 calls
1> 5 ms InitializeCudaHostProperties 1 calls
1> 6 ms AddCudaCompileMetadata 1 calls
1> 9 ms PrepareForBuild 1 calls
1> 13 ms InitializeBuildStatus 1 calls
1> 22 ms AddCudaCompilePropsDeps 1 calls
1> 25 ms _HandlePackageFileConflicts 1 calls
1> 50 ms AddCudaCompileDeps 1 calls
1> 617 ms CudaBuildCore 1 calls
1> 905 ms CudaBuild 1 calls
1>
1>Task Performance Summary:
1> 0 ms CountItems 1 calls
1> 0 ms CudaSetEnvironmentVariable 2 calls
1> 0 ms SanitizePaths 3 calls
1> 0 ms SplitToItemMetadata 2 calls
1> 0 ms ResolvePaths 1 calls
1> 1 ms Message 3 calls
1> 1 ms AssignProjectConfiguration 1 calls
1> 2 ms MakeDir 2 calls
1> 4 ms SetEnv 12 calls
1> 6 ms WriteLinesToFile 2 calls
1> 6 ms ReadLinesFromFile 2 calls
1> 7 ms ReadMetadataLinesFromItems 1 calls
1> 9 ms Touch 1 calls
1> 11 ms XmlPeek 1 calls
1> 21 ms ResolvePackageFileConflicts 1 calls
1> 291 ms CudaCompile 1 calls
1> 903 ms MSBuild 2 calls
1>
1>Build FAILED.
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(712,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -gencode=arch=compute_60,code=“sm_60,compute_60” --use-local-env -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -cudart static -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /Fdx64\Debug\vc141.pdb /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu”” exited with code 1.
1> 0 Warning(s)
1> 1 Error(s)

In the case of the error generated when I run clean an NVCC fatal error is reported

1>Target “CudaClean” in file “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets”:
1> Building target “CudaClean” completely.
1> No input files were specified.
1> Initializing task factory “XamlTaskFactory” from assembly “Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1> Using “CudaCompile” task from the task factory “XamlTaskFactory”.
1> Task “CudaCompile”
1> Task Parameter:StandardOutputImportance=High
1> Task Parameter:LogStandardErrorAsError=False
1> Task Parameter:CompileOut=x64\Debug\kernel.cu.obj
1> Task Parameter:Include=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include
1> Task Parameter:NvccCompilation=compile
1> Task Parameter:NvccPath=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe
1> Task Parameter:RequiredIncludes=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include
1> Task Parameter:TargetMachinePlatform=64
1> Task Parameter:InterleaveSourceInPTX=False
1> Task Parameter:GPUDebugInfo=True
1> Task Parameter:GenerateLineInfo=False
1> Task Parameter:Keep=False
1> Task Parameter:KeepDir=x64\Debug
1> Task Parameter:MaxRegCount=0
1> Task Parameter:PtxAsOptionV=True
1> Task Parameter:
1> Defines=
1> WIN32
1> WIN64
1> _DEBUG
1> _CONSOLE
1> _MBCS
1> Task Parameter:Emulation=False
1> Task Parameter:HostDebugInfo=True
1> Task Parameter:FastMath=False
1> Task Parameter:Optimization=Od
1> Task Parameter:Runtime=MDd
1> Task Parameter:RuntimeChecks=RTC1
1> Task Parameter:Warning=W3
1> Task Parameter:CommandLineTemplate=“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu [GenerateRelocatableDeviceCode] [Include] [RequiredIncludes] [InterleaveSourceInPTX] [GPUDebugInfo] [GenerateLineInfo] [Keep] [KeepDir] [MaxRegCount] [PtxAsOptionV] [TargetMachinePlatform] [NvccCompilation] [CudaRuntime] [AdditionalOptions] [HostDebugInfo] [Emulation] [FastMath] [Defines] -Xcompiler “/EHsc [Warning] /nologo [Optimization] [ProgramDataBaseFileName] /FS /Zi [RuntimeChecks] [Runtime] [TypeInfo]” [CompileOut] “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean
1> cmd.exe /C “C:\Users\JZ1280\AppData\Local\Temp\tmp49b167054fe549b39f05cf3508eb7b20.cmd”
1> “C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean
1>
1> C:\Users\JZ1280\source\repos\ABC\ABC>“C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean
1> nvcc fatal : Could not set up the environment for Microsoft Visual Studio using ‘C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX86/x64/…/…/…/…/…/…/…/VC/Auxiliary/Build/vcvars64.bat’
1> C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(889,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean” exited with code 1.
1> Done executing task “CudaCompile” – FAILED.
1>Done building target “CudaClean” in project “ABC.vcxproj” – FAILED.
1>
1>Done building project “ABC.vcxproj” – FAILED.
1>
1>Project Performance Summary:
1> 7523 ms C:\Users\JZ1280\source\repos\ABC\ABC\ABC.vcxproj 1 calls
1>
1>Target Performance Summary:
1> 0 ms _CheckForInvalidConfigurationAndPlatform 1 calls
1> 0 ms AfterCppClean 1 calls
1> 0 ms BeforeCppClean 1 calls
1> 0 ms AfterClean 1 calls
1> 0 ms ValidateCudaBuild 1 calls
1> 0 ms PrepareProjectReferences 1 calls
1> 0 ms CleanPublishFolder 1 calls
1> 0 ms _SplitProjectReferencesByFileExistence 1 calls
1> 0 ms AssignProjectConfiguration 1 calls
1> 0 ms BeforeClean 1 calls
1> 0 ms _PrepareForClean 1 calls
1> 0 ms _GetProjectReferenceTargetFrameworkProperties 1 calls
1> 1 ms CleanReferencedProjects 1 calls
1> 1 ms CoreClean 1 calls
1> 1 ms AddCudaCompileMetadata 1 calls
1> 2 ms PGInstrumentedClean 1 calls
1> 10 ms InitializeCudaHostProperties 1 calls
1> 50 ms CoreCppClean 1 calls
1> 7453 ms CudaClean 1 calls
1>
1>Task Performance Summary:
1> 0 ms Message 2 calls
1> 0 ms Delete 4 calls
1> 0 ms ReadLinesFromFile 2 calls
1> 0 ms FindUnderPath 2 calls
1> 0 ms RemoveDuplicates 1 calls
1> 0 ms MakeDir 2 calls
1> 0 ms AssignProjectConfiguration 1 calls
1> 0 ms MSBuild 1 calls
1> 0 ms SanitizePaths 1 calls
1> 0 ms SplitToItemMetadata 1 calls
1> 6 ms WriteLinesToFile 2 calls
1> 45 ms CppClean 1 calls
1> 7122 ms CudaCompile 1 calls
1>
1>Build FAILED.
1>
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 10.0.targets(889,9): error MSB3721: The command ““C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\bin\nvcc.exe” -ccbin “C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64” -x cu -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include” -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v10.0\include" -G --keep-dir x64\Debug -maxrregcount=0 --ptxas-options=-v --machine 64 --compile -g -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64\Debug\kernel.cu.obj “C:\Users\JZ1280\source\repos\ABC\ABC\kernel.cu” -clean” exited with code 1.
1> 0 Warning(s)
1> 1 Error(s)

I have checked that the file ‘vcvars64.bat’ exists on the path referenced in the error message and that it runs without error from a command prompt.

The problem feels like it is related to the environment settings however I have been unable to resolve the problem.

Has any one seen this before? If so what am I missing?

Update - issued finally resolved by reinstalling to an account with a name that does not contain spaces. Come on Nvidia, surely your testing should pick up this sort of issue.

1 Like

Saved me after 2 days of reserching this problem.