Error msb3721 cuda

I have installed CUDA 5.5 Production Release with the default installation directory structure. Then I follow the NVIDIA CUDA Getting Started Guide for Microsoft Windows. The nvcc -V test and

I have installed CUDA 5.5 Production Release with the default installation directory structure.
Then I follow the NVIDIA CUDA Getting Started Guide for Microsoft Windows.

The nvcc -V test and deviceQuery.exe and bandwidthTest.exe works fine in windows command promote.

Then I try to build bandwidthTest project(located in the NVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTest)

Some errors pop up as follows:

1>------ Build started: Project: bandwidthTest, Configuration: Release x64 ------
1>Build started 2013/11/19 13:13:41.
1>AddCudaCompileDeps:
1>Skipping target "AddCudaCompileDeps" because all output files are up-to-date with respect to the input files.
1>AddCudaCompilePropsDeps:
1>Skipping target "AddCudaCompilePropsDeps" because all output files are up-to-date with respect to the input files.
1>CudaBuild:
1>  Compiling CUDA source file bandwidthTest.cu...
1>  'C:UsersIMI_UserAppDataLocalTemp' is not recognized as an internal or external command,
1>  operable program or batch file.
1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets(592,9): error MSB3721: The command ""C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5binnvcc.exe" -gencode=arch=compute_10,code="sm_10,compute_10" -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" --use-local-env --cl-version 2010 -ccbin "c:Program Files (x86)Microsoft Visual Studio 10.0VCbinx86_amd64"  -I./ -I../../common/inc -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include"     --keep-dir x64Release -maxrregcount=0  --machine 64 --compile -cudart static -Xcompiler "/wd 4819"     -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi  /MT  " -o x64/Release/bandwidthTest.cu.obj "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest.cu"" exited with code 1.
1>
1>Build FAILED.
1>

1) I fould one solution on the internet :https://devtalk.nvidia.com/default/topic/533797/visual-studio-2010-how-to-fix-error-msb3721-exiting-with-code-1/
which is quite similar to my situation. It mentions that it is the antivirus software that causes this problem.
So I uninstalled any antivirus software and reinstall the CUDA 5.5 product. Restart the computer. But it didn’t solve my problem.
2) I found another solution that should ‘Run as a administrator’. Again, it won’t help. CUDA 4.2. toolbox & VS2010

I build another sample project deviceQuery located in the NVIDIA CorporationCUDA Samplesv5.51_UtilitiesdeviceQuery and sucessfully.

Can anyone help me with the problem I have here?

bandwidthTest_vs2010.log

Build started 2013/11/20 12:24:19.
Environment at start of build:
MSBuildExtensionsPath32 = C:Program Files (x86)MSBuild
MSBuildExtensionsPath64 = C:Program FilesMSBuild
MSBuildExtensionsPath = C:Program Files (x86)MSBuild
LOCALAPPDATA = C:UsersIMI_UserAppDataLocal
ALLUSERSPROFILE = C:ProgramData
APPDATA = C:UsersIMI_UserAppDataRoaming
BURN_AUTOPLAY = C:Program Files (x86)RoxioOEMRoxio Burn
CommonProgramFiles = C:Program Files (x86)Common Files
CommonProgramW6432 = C:Program FilesCommon Files
COMPUTERNAME = IMI_USER-PC
ComSpec = C:Windowssystem32cmd.exe
CUDA_PATH = C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5
CUDA_PATH_V5_5 = C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5
EMC_AUTOPLAY = C:Program Files (x86)Common FilesRoxio SharedOEM
FP_NO_HOST_CHECK = NO
GNUPLOT_LIB = C:tmpgnuplotdemo
HOMEDRIVE = C:
HOMEPATH = UsersIMI_User
LOGONSERVER = \IMI_USER-PC
MOZ_PLUGIN_PATH = C:Program Files (x86)Foxit SoftwareFoxit Readerplugins
NUMBER_OF_PROCESSORS = 4
NVCUDASAMPLES5_5_ROOT = C:ProgramDataNVIDIA CorporationCUDA Samplesv5.5
NVCUDASAMPLES_ROOT = C:ProgramDataNVIDIA CorporationCUDA Samplesv5.5
NVTOOLSEXT_PATH = C:Program FilesNVIDIA CorporationNvToolsExt
OS = Windows_NT
Path = C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5bin;C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5libnvvp;C:Program FilesMiKTeX 2.9miktexbinx64;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program Files (x86)Common FilesMicrosoft SharedWindows Live;C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;C:WindowsSystem32WindowsPowerShellv1.0;C:Program Files (x86)IntelServicesIPT;C:Program Files (x86)NTRU CryptosystemsNTRU TCG Software Stackbin;C:Program FilesNTRU CryptosystemsNTRU TCG Software Stackbin;C:Program FilesDellDell Data ProtectionAccessAdvancedWaveGemaltoAccess Clientv5;C:Program Files (x86)Windows LiveShared;C:Program Files (x86)Common FilesRoxio SharedDLLShared;C:Program Files (x86)Common FilesRoxio SharedOEMDLLShared;C:Program Files (x86)Common FilesRoxio SharedOEMDLLShared;C:Program Files (x86)Common FilesRoxio SharedOEM12.0DLLShared;C:Program Files (x86)RoxioOEMAudioCore;c:Program Files (x86)Microsoft SQL Server100ToolsBinn;c:Program FilesMicrosoft SQL Server100ToolsBinn; C:Program FilesMicrosoft SQL Server100DTSBinn;C:Program Files (x86)MATLABR2011bbinwin32;C:Program Files (x86)Common FilesAutodesk Shared;C:Program FilesCommon FilesAutodesk Shared;C:Program Files (x86)opencvbuildx86vc10bin;C:Program Files (x86)opencvbuildcommontbbia32vc10;C:DeploybinWin32Release;C:Program FilesMATLABR2011bbin;D:ResearchSQACODESopensmile-2.0-rc1msvcbuild;C:UsersIMI_UserAppDataLocalEnthoughtCanopyUserScripts;C:Program Files (x86)Gitcmd;C:UsersIMI_UserAppDataLocalEnthoughtCanopyUserScripts;C:UsersIMI_UserAppDataLocalEnthoughtCanopyUser;C:UsersIMI_UserAppDataLocalEnthoughtCanopySystemScripts
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PBRT_SEARCHPATH = C:pbrt-v1pbrt-1.05bin
PROCESSOR_ARCHITECTURE = x86
PROCESSOR_ARCHITEW6432 = AMD64
PROCESSOR_IDENTIFIER = Intel64 Family 6 Model 42 Stepping 7, GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 2a07
ProgramData = C:ProgramData
ProgramFiles = C:Program Files (x86)
ProgramW6432 = C:Program Files
PSModulePath = C:Windowssystem32WindowsPowerShellv1.0Modules
PUBLIC = C:UsersPublic
RCAUTOPLAY = C:Program Files (x86)RoxioOEMRoxio Central 5
SESSIONNAME = Console
SystemDrive = C:
SystemRoot = C:Windows
TEMP = C:UsersIMI_UserAppDataLocalTemp
TMP = C:UsersIMI_UserAppDataLocalTEMP_~1
USERDOMAIN = IMI_User-PC
USERNAME = IMI_User
USERPROFILE = C:UsersIMI_User
VisualStudioDir = C:UsersIMI_UserDocumentsVisual Studio 2010
VS100COMNTOOLS = c:Program Files (x86)Microsoft Visual Studio 10.0Common7Tools
windir = C:Windows
windows_tracing_flags = 3
windows_tracing_logfile = C:BVTBinTestsinstallpackagecsilogfile.log

12:24:19.379     1>Project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" on node 2 (rebuild target(s)).
12:24:19.379     1>Building with tools version "4.0".
12:24:19.379     1>Target "_CheckForInvalidConfigurationAndPlatform: (TargetId:2)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (entry point):
                   Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
                   Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
                   Using "Message" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "Message" (TaskId:2)
                     Configuration=Release (TaskId:2)
                   Done executing task "Message". (TaskId:2)
                   Task "Message" (TaskId:3)
                     Platform=x64 (TaskId:3)
                   Done executing task "Message". (TaskId:3)
                   Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('../../bin/win64/Release/' != '' and !HasTrailingSlash('../../bin/win64/Release/')).
                   Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj' != '' and !HasTrailingSlash('obj')).
                   Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('x64/Release/' != '' and !HasTrailingSlash('x64/Release/')).
12:24:19.400     1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:2)
12:24:19.400     1>Target "_DetermineManagedStateFromCL: (TargetId:3)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppBuild.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Rebuild" depends on it):
12:24:19.400     1>Done building target "_DetermineManagedStateFromCL" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:3)
12:24:19.400     1>Target "_PrepareForRebuild: (TargetId:4)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.BuildSteps.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Rebuild" depends on it):
12:24:19.401     1>Done building target "_PrepareForRebuild" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:4)
12:24:19.401     1>Target "BeforeRebuild: (TargetId:5)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Rebuild" depends on it):
12:24:19.401     1>Done building target "BeforeRebuild" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:5)
12:24:19.401     1>Target "_PrepareForClean: (TargetId:6)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.BuildSteps.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
                   Task "Delete" skipped, due to false condition; (Exists($(LastBuildState))) was evaluated as (Exists(x64/Release/bandwidthTest.lastbuildstate)).
12:24:19.401     1>Done building target "_PrepareForClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:6)
12:24:19.401     1>Target "BeforeClean: (TargetId:7)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
12:24:19.401     1>Done building target "BeforeClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:7)
                   Target "UnmanagedUnregistration" skipped, due to false condition; ((('$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)' or '$(RegisterForComInterop)' != 'true' or '$(OutputType)' != 'library') or
                                       ('$(_AssemblyTimestampBeforeCompile)' == '')) and
                                      Exists('@(_UnmanagedRegistrationCache)')) was evaluated as ((('' != '' or '' != 'true' or 'exe' != 'library') or
                                       ('' == '')) and
                                      Exists('objbandwidthTest_vs2010.vcxproj.UnmanagedRegistration.cache')).
12:24:19.401     1>Target "CoreClean: (TargetId:8)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
                   Using "Delete" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "Delete" (TaskId:4)
                   Done executing task "Delete". (TaskId:4)
                   Using "ReadLinesFromFile" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "ReadLinesFromFile" (TaskId:5)
                   Done executing task "ReadLinesFromFile". (TaskId:5)
                   Using "FindUnderPath" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "FindUnderPath" (TaskId:6)
                     Comparison path is "../../bin/win64/Release/". (TaskId:6)
                   Done executing task "FindUnderPath". (TaskId:6)
                   Task "FindUnderPath" (TaskId:7)
                     Comparison path is "x64/Release/". (TaskId:7)
                   Done executing task "FindUnderPath". (TaskId:7)
                   Task "Delete" (TaskId:8)
                   Done executing task "Delete". (TaskId:8)
                   Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "RemoveDuplicates" (TaskId:9)
                   Done executing task "RemoveDuplicates". (TaskId:9)
                   Using "MakeDir" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "MakeDir" (TaskId:10)
                   Done executing task "MakeDir". (TaskId:10)
                   Using "WriteLinesToFile" task from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "WriteLinesToFile" (TaskId:11)
                   Done executing task "WriteLinesToFile". (TaskId:11)
12:24:19.404     1>Done building target "CoreClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:8)
                   Target "AssignProjectConfiguration" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
12:24:19.404     1>Target "_SplitProjectReferencesByFileExistence: (TargetId:9)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CleanReferencedProjects" depends on it):
                   Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!='').
12:24:19.404     1>Done building target "_SplitProjectReferencesByFileExistence" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:9)
12:24:19.404     1>Target "CleanReferencedProjects: (TargetId:10)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
                   Task "MSBuild" skipped, due to false condition; ('$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' != 'true' and 'true' == 'true' and '' != '').
12:24:19.404     1>Done building target "CleanReferencedProjects" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:10)
12:24:19.404     1>Target "CleanPublishFolder: (TargetId:11)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
                   Task "RemoveDir" skipped, due to false condition; ('$(PublishDir)'=='$(OutputPath)app.publish' and Exists('$(PublishDir)')) was evaluated as ('C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestx64Releaseapp.publish'=='C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestx64Releaseapp.publish' and Exists('C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestx64Releaseapp.publish')).
12:24:19.404     1>Done building target "CleanPublishFolder" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:11)
12:24:19.404     1>Target "AfterClean: (TargetId:12)" in file "c:WindowsMicrosoft.NETFrameworkv4.0.30319Microsoft.Common.Targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "Clean" depends on it):
12:24:19.404     1>Done building target "AfterClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:12)
                   Target "EntityClean" skipped, due to false condition; ('@(EntityDeploy)' != '') was evaluated as ('' != '').
12:24:19.404     1>Target "BeforeCppClean: (TargetId:13)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppClean.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CppClean" depends on it):
12:24:19.404     1>Done building target "BeforeCppClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:13)
12:24:19.404     1>Target "CoreCppClean: (TargetId:14)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppClean.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CppClean" depends on it):
                   Task "MakeDir" (TaskId:12)
                   Done executing task "MakeDir". (TaskId:12)
                   Using "CppClean" task from assembly "Microsoft.Build.CppTasks.Common, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
                   Task "CppClean" (TaskId:13)
                   Done executing task "CppClean". (TaskId:13)
                   Task "WriteLinesToFile" (TaskId:14)
                   Done executing task "WriteLinesToFile". (TaskId:14)
12:24:19.409     1>Done building target "CoreCppClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:14)
12:24:19.409     1>Target "AfterCppClean: (TargetId:15)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppClean.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CppClean" depends on it):
12:24:19.409     1>Done building target "AfterCppClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:15)
12:24:19.409     1>Target "PGInstrumentedClean: (TargetId:16)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0Microsoft.CppClean.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CppClean" depends on it):
                   Task "Delete" (TaskId:15)
                   Done executing task "Delete". (TaskId:15)
12:24:19.409     1>Done building target "PGInstrumentedClean" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:16)
12:24:19.409     1>Target "InitializeCudaHostProperties: (TargetId:17)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "AddCudaCompileMetadata" depends on it):
12:24:19.409     1>Done building target "InitializeCudaHostProperties" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:17)
12:24:19.410     1>Target "AddCudaCompileMetadata: (TargetId:18)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CudaClean" depends on it):
                   Building target "AddCudaCompileMetadata" completely.
                   No input files were specified.
                   Using "SanitizePaths" task from assembly "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsNvda.Build.CudaTasks.v5.5.dll".
                   Task "SanitizePaths" (TaskId:16)
                   Done executing task "SanitizePaths". (TaskId:16)
                   Task "ReadLinesFromFile" (TaskId:17)
                   Done executing task "ReadLinesFromFile". (TaskId:17)
                   Using "SplitToItemMetadata" task from assembly "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsNvda.Build.CudaTasks.v5.5.dll".
                   Task "SplitToItemMetadata" (TaskId:18)
                   Done executing task "SplitToItemMetadata". (TaskId:18)
12:24:19.422     1>Done building target "AddCudaCompileMetadata" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:18)
12:24:19.422     1>Target "ValidateCudaBuild: (TargetId:19)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CudaClean" depends on it):
                   Task "Error" skipped, due to false condition; (!Exists($(CudaToolkitDir))) was evaluated as (!Exists(C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5)).
12:24:19.422     1>Done building target "ValidateCudaBuild" in project "bandwidthTest_vs2010.vcxproj".: (TargetId:19)
12:24:19.422     1>Target "CudaClean: (TargetId:20)" in file "C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets" from project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (target "CppClean" depends on it):
                   Building target "CudaClean" completely.
                   No input files were specified.
                   Initializing task factory "XamlTaskFactory" from assembly "Microsoft.Build.Tasks.v4.0".
                   Using "CudaCompile" task from the task factory "XamlTaskFactory".
                   Task "CudaCompile" (TaskId:19)
                     cmd.exe /C "C:UsersIMI_UserAppDataLocalTemp;8f2923f4a8704bedb3b1e52239ac5f64.cmd" (TaskId:19)
                     "C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5binnvcc.exe" -ccbin "c:Program Files (x86)Microsoft Visual Studio 10.0VCbinx86_amd64"  -I./ -I../../common/inc -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include"     --keep-dir x64Release -maxrregcount=0  --machine 64 --compile  -Xcompiler "/wd 4819"     -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi  /MT  " -o x64/Release/bandwidthTest.cu.obj "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest.cu" -clean (TaskId:19)
                     'C:UsersIMI_UserAppDataLocalTemp' is not recognized as an internal or external command, (TaskId:19)
                     operable program or batch file. (TaskId:19)
12:24:19.668     1>C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets(758,9): error MSB3721: The command ""C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5binnvcc.exe" -ccbin "c:Program Files (x86)Microsoft Visual Studio 10.0VCbinx86_amd64"  -I./ -I../../common/inc -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include"     --keep-dir x64Release -maxrregcount=0  --machine 64 --compile  -Xcompiler "/wd 4819"     -DWIN32 -D_MBCS -Xcompiler "/EHsc /W3 /nologo /O2 /Zi  /MT  " -o x64/Release/bandwidthTest.cu.obj "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest.cu" -clean" exited with code 1.
                   Done executing task "CudaCompile" -- FAILED. (TaskId:19)
12:24:19.669     1>Done building target "CudaClean" in project "bandwidthTest_vs2010.vcxproj" -- FAILED.: (TargetId:20)
12:24:19.669     1>Done Building Project "C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj" (rebuild target(s)) -- FAILED.

Project Performance Summary:
      290 ms  C:ProgramDataNVIDIA CorporationCUDA Samplesv5.51_UtilitiesbandwidthTestbandwidthTest_vs2010.vcxproj   1 calls
                290 ms  rebuild                                    1 calls

Target Performance Summary:
        0 ms  CleanReferencedProjects                    1 calls
        0 ms  CleanPublishFolder                         1 calls
        0 ms  AfterCppClean                              1 calls
        0 ms  PGInstrumentedClean                        1 calls
        0 ms  ValidateCudaBuild                          1 calls
        0 ms  BeforeCppClean                             1 calls
        0 ms  BeforeClean                                1 calls
        0 ms  _DetermineManagedStateFromCL               1 calls
        0 ms  _SplitProjectReferencesByFileExistence     1 calls
        0 ms  AfterClean                                 1 calls
        0 ms  InitializeCudaHostProperties               1 calls
        0 ms  BeforeRebuild                              1 calls
        0 ms  _PrepareForClean                           1 calls
        1 ms  _PrepareForRebuild                         1 calls
        3 ms  CoreClean                                  1 calls
        5 ms  CoreCppClean                               1 calls
       12 ms  AddCudaCompileMetadata                     1 calls
       21 ms  _CheckForInvalidConfigurationAndPlatform   1 calls
      247 ms  CudaClean                                  1 calls

Task Performance Summary:
        0 ms  RemoveDuplicates                           1 calls
        0 ms  FindUnderPath                              2 calls
        0 ms  MakeDir                                    2 calls
        1 ms  WriteLinesToFile                           2 calls
        2 ms  Delete                                     3 calls
        2 ms  SplitToItemMetadata                        1 calls
        2 ms  CppClean                                   1 calls
        3 ms  ReadLinesFromFile                          2 calls
        3 ms  SanitizePaths                              1 calls
       15 ms  Message                                    2 calls
       45 ms  CudaCompile                                1 calls

Build FAILED.

Time Elapsed 00:00:00.28

Содержание

  1. MSB3721: работа команды «command» завершена с кодом «error-code»
  2. Help with MSB3721: the command «. » stopped with the code 1 #4629
  3. Comments
  4. MSB3721 error visual studio 2019 #343
  5. Comments
  6. Footer
  7. Ошибка Visual Studio MSB3721 при компиляции вызова функции __device__ из другого файла
  8. Решение
  9. Error msb3721 the command
  10. Asked by:
  11. Question

MSB3721: работа команды «command» завершена с кодом «error-code»

Эта ошибка возникает, когда работа команды, запущенной в процессе сборки, завершается с ненулевым кодом ошибки.

Чтобы исследовать ошибку, проверьте выходные данные сборки или журнал сборки, чтобы определить, возникла ли на этапе пользовательской сборки ошибка с информацией о проблеме. В противном случае попробуйте выполнить этот этап отдельно, чтобы проверить наличие проблем или непредвиденное поведение.

Если не удается увидеть точную командную строку с ошибкой, можно изменить уровень детализации выходных данных сборки, чтобы вывести более подробные сведения. Параметр командной строки MSBuild имеет значение -verbosity: или -V: , где имеет значение q[uiet] , m[inimal] , n[ormal] (по умолчанию), d[etailed] или diag[nostic] . См. статью Справочник по командной строке MSBuild. Для больших проектов с более крупными журналами выходных данных рассмотрите возможность использования двоичного журнала (параметр командной строки -bl ) и структурированного средства просмотра журналов MSBuild для упрощения просмотра выходных данных.

Кроме того, можно задать для переменной среды MSBuildDebugEngine значение 1, чтобы получить все возможные журналы. См. статью Сборка MSBuild для .NET Framework — журналы.

В Visual Studio можно изменить уровень детализации, выбрав Сервис>Параметры, Проекты и решения, Сборка и запуск. См. документ Практическое руководство. Просмотр, сохранение и настройка файлов журнала сборки.

Источник

Help with MSB3721: the command «. » stopped with the code 1 #4629

I am facing to the problem of launching a external command from VS2015 using an MSBuild extension as below

%(Filename).cc java -classpath C:Usersfandre.m2repositoryorgjavacccore8.0.0core-8.0.0.jar;C:Usersfandre.m2repositoryorgjavacccodegencpp2.0.0cpp-2.0.0.jar javacc [AllOptions] [AdditionalOptions] %(RootDir)%(Directory)%(Filename)%(Extension) %(RootDir)%(OutputDirectory)%(OutputFile); Process «%(Filename)%(Extension)» JavaCC file

When compiling a javacc file using VS2015 IDE, the error log displays

But when I run the command in a separate DOS windows, the return code echoed by `echo %ERRORLEVEL% is 0

How can I fix this issue?

The text was updated successfully, but these errors were encountered:

Can you try putting this in a single line:

Changed the command as per your request

but the result is the same

@zosrothko, can you build at diagnostic verbosity and see if the stdout/stderr of javacc gives any clues about what’s going wrong?

@rainersigwald Is there a way to ask the javacc target execution with a verbose level of diagnostic? as in

You can’t control an individual target’s verbosity level, but if you build that way it will be included in the output.

@rainersigwald I switched the test to another PC where the VS IDE configuration is similar and there, one get

and in this case, the returned code is 2 but JAVACC states it could not found java.dll while the same command line on a separate DOS windows runs fine as below

That sounds like a difference in the PATH environment variable between the environments. How did you add Java to your PATH ?

See an update of my previous comment

And is that environment identical in the MSBuild log? at diag verbosity, MSBuild should dump the environment before building.

Ok, I build using msbuild /v:diag and the problem is coming from JavaCC see below. I have no idea why it works with a plain DOS windows and not under VS IDE/MSBuild

Let me check for this point and I will come back to you.

Went back to the VS IDE where the return code was 1. Using msbuild with the verbosity set to diag, one gets

Источник

MSB3721 error visual studio 2019 #343

trying new cuda 11.4 update.
visual studio 2019

Severity Code Description Project File Line Suppression State
Error MSB3721 The command «»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.4binnvcc.exe» -gencode=arch=compute_52,code=»sm_52,compute_52″ —use-local-env -ccbin «C:Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX86x64″ -x cu -rdc=true -I»C:UsersHP Z800DocumentsBitCrack-cuda-11KeyFinderLib» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11CudaMath» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11secp256k1lib» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11cudaUtil» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11Logger» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11util» -I»C:UsersHP Z800DocumentsBitCrack-cuda-11AddressUtil» -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.4include» -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.4include» -G —keep-dir x64Debug -maxrregcount=0 —machine 64 —compile -cudart static -g -DCODE_ANALYSIS -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler «/EHsc /W3 /nologo /Od /Fd»C:UsersHP Z800DocumentsBitCrack-cuda-11x64DebugCudaKeySearchDevice.pdb» /FS /Zi /RTC1 /MDd » -o x64Debugcudabridge.cu.obj «C:UsersHP Z800DocumentsBitCrack-cuda-11CudaKeySearchDevicecudabridge.cu»» exited with code 1. CudaKeySearchDevice C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160BuildCustomizationsCUDA 11.4.targets 785

The text was updated successfully, but these errors were encountered:

Open file BitCrack.vcxproj in a text editor.
Replace 2 stringe CUDA 10.0.targets with CUDA 11.4.targets save.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

Ошибка Visual Studio MSB3721 при компиляции вызова функции __device__ из другого файла

Я пытаюсь скомпилировать проект CUDA, который выдает ошибку 255, как только я пытаюсь запустить функцию, определенную в отдельном файле .cu

Здесь определено основное ядро

Я использую Visual Studio 2013 и добавляю файлы CUDA в свой проект как обычно из меню

Это ошибка компиляции

Проект строится и работает нормально, если я закомментирую

В основном файле ядра

Решение

В CUDA, когда мы хотим вызвать функцию кода устройства из другой функции кода устройства, и эти две функции кода устройства находятся в отдельных блоках компиляции, необходимо включить генерация и привязка кода перемещаемого устройства при составлении такого проекта.

В Visual Studio это может быть установлено для всего проекта со страницы свойств проекта, как указано Вот :

Кроме того, при работе с Visual Studio и CUDA ошибка «MSB3721» является неспецифической ошибкой от Visual Studio, указывающей «Я запустил nvcc и он вернул ошибку «. Однако фактическая ошибка из nvcc должно произойти до этого. Если вы не видите его в окне вывода компиляции непосредственно перед ошибкой «MSB3721», то ваш уровень детализации слишком низок. Вы можете увеличить его, и точный способ сделать это будет немного отличаться в зависимости от версии VS, поэтому я рекомендую выполнить поиск того, как это сделать, для вашей конкретной версии.

Источник

Error msb3721 the command

This forum is closed. Thank you for your contributions.

Asked by:

Question

I’m trying to add a CUDA module to an open source code called CompuCell3D. http://www.compucell3d.org/

Right now I’m getting bellow error in the compile time

Error 2 error MSB3721: The command «»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv4.2binnvcc.exe» -gencode=arch=compute_10,code=»sm_10,compute_10» —use-local-env —cl-version 2010 -ccbin «C:Program Files (x86)Microsoft Visual Studio 10.0VCbin» -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv4.2include» —keep-dir «RelWithDebInfo» -maxrregcount=0 —machine 32 —compile -Xcompiler «/EHsc /nologo /Od /Zi /MD » -o «DiffusionSolver_GPUShared.dirRelWithDebInfoDiffusionSolver_GPU_Kernels.cu.obj» «D:CompuCell3D_V080414CompuCell3DcoreCompuCell3DsteppablesDiffusionSolver_GPUDiffusionSolver_GPU_Kernels.cu»» exited with code 2. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 4.2.targets 361 10 DiffusionSolver_GPUShared

I tried different types of solutions in different forums but non of them (so far) was my case.

I would appreciate any hints to this problem.

Источник

Я пытаюсь скомпилировать проект CUDA, который выдает ошибку 255, как только я пытаюсь запустить функцию, определенную в отдельном файле .cu

Здесь определено основное ядро

#include <curand_kernel.h>
#include <ctime>

#include <stdio.h>
#include "Scene.cuh"
__global__ void fill(float *c, Scene* scene)
{
int index = blockIdx.y * blockDim.x * blockDim.y * gridDim.x +
threadIdx.y * blockDim.x * gridDim.x +
blockIdx.x * blockDim.x + threadIdx.x;// this is the line which gives the compilation error
float3 result = scene->computeRayFromIndex(index);

c[index * 4 + 0] += 1.0f;
c[index * 4 + 1] += 1.0f;
c[index * 4 + 2] += 1.0f;
c[index * 4 + 3] += 1.0f;
}

Вот сцена.

#ifndef Scene_h
#define Scene_h

#include "cuda_runtime.h"
class Scene {

public:
Scene();

__host__ __device__ float3 computeRayFromIndex(int);

int width;
int height;

int cameraType;

private:

};

#endif

И scene.cu

#include "Scene.cuh"
Scene::Scene() {

}

__host__ __device__ float3 Scene::computeRayFromIndex(int pixelIndex) {
float3 test;
return test;
}

Я использую Visual Studio 2013 и добавляю файлы CUDA в свой проект как обычно из меню

Это ошибка компиляции

Error   10  error MSB3721: The command ""C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0binnvcc.exe" -gencode=arch=compute_20,code="sm_20,compute_20" --use-local-env --cl-version 2013 -ccbin "C:Program Files (x86)Microsoft Visual Studio 12.0VCbinx86_amd64"  -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv8.0include"  -G   --keep-dir x64Debug -maxrregcount=0  --machine 64 --compile -cudart static  -g   -DWIN32 -DWIN64 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MDd " -o x64DebugfillRandomTexture.cu.obj "D:CUDAprojectsvRayvRayfillRandomTexture.cu"" exited with code 255.

Проект строится и работает нормально, если я закомментирую

float3 result = scene->computeRayFromIndex(index);

В основном файле ядра

1

Решение

В CUDA, когда мы хотим вызвать функцию кода устройства из другой функции кода устройства, и эти две функции кода устройства находятся в отдельных блоках компиляции, необходимо включить генерация и привязка кода перемещаемого устройства при составлении такого проекта.

В Visual Studio это может быть установлено для всего проекта со страницы свойств проекта, как указано Вот:

введите описание изображения здесь

Кроме того, при работе с Visual Studio и CUDA ошибка «MSB3721» является неспецифической ошибкой от Visual Studio, указывающей «Я запустил nvcc и он вернул ошибку «. Однако фактическая ошибка из nvcc должно произойти до этого. Если вы не видите его в окне вывода компиляции непосредственно перед ошибкой «MSB3721», то ваш уровень детализации слишком низок. Вы можете увеличить его, и точный способ сделать это будет немного отличаться в зависимости от версии VS, поэтому я рекомендую выполнить поиск того, как это сделать, для вашей конкретной версии.

3

Другие решения

Других решений пока нет …

Windows10
CUDA 11.6
RTX 3080TI
cmake 3.21.2
VS2019 14.29

srctestbed.cu(1023): error : too few arguments in function cal
l [C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpbuildngp.vcxproj]

C:Program Files (x86)Microsoft Visual Studio2019CommunityMSBuildMicrosoftVCv160BuildCustomizationsCUDA 11.6.t
argets(790,9): error MSB3721: “»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.6binnvcc.exe» -gencode=arch=
compute_86,code=»compute_86,compute_86″ -gencode=arch=compute_86,code=»sm_86,compute_86″ —use-local-env -ccbin «C:
Program Files (x86)Microsoft Visual Studio2019CommunityVCToolsMSVC14.29.30133binHostX64x64″ -x cu -rdc=true
-I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependencies» -I»C:UsersAdminPyOutCGAIinstant-ngpGite
einstant-ngpdependencieseigen» -I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependenciesfilesystem» —
I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependenciesglfwinclude» -I»C:UsersAdminPyOutCGAIinsta
nt-ngpGiteeinstant-ngpdependenciesimguigl3w» -I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependenci
esnanovdb» -I»C:ProgramDataNVIDIA CorporationOptiX SDK 7.4.0include» -I»C:UsersAdminPyOutCGAIinstant-ngpGite
einstant-ngpdependenciestiny-cuda-nninclude» -I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependencie
stiny-cuda-nndependencies» -I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpdependenciestinylogger» -I»C:
UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpinclude» -I»C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ng
pbuild» -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv11.6include» —keep-dir x64RelWithDebInfo -maxrr
egcount=0 —machine 64 —compile -cudart static —extended-lambda —expt-relaxed-constexpr -std=c++14 -Xcompiler=»/EHs
c -Zi -Ob1 -bigobj» -D_WINDOWS -DNDEBUG -DNGP_GUI -DNGP_OPTIX -DTCNN_MIN_GPU_ARCH=86 -DTCNN_SHAMPOO -D»NGP_VERSION=»
1.0dev»» -D»CMAKE_INTDIR=»RelWithDebInfo»» -D_MBCS -DWIN32 -D_WINDOWS -D_CRT_SECURE_NO_WARNINGS -DNDEBUG -DNGP_GUI —
DNGP_OPTIX -DTCNN_MIN_GPU_ARCH=86 -DTCNN_SHAMPOO -D»NGP_VERSION=»1.0dev»» -D»CMAKE_INTDIR=»RelWithDebInfo»» -Xcompi
ler «/EHsc /W1 /nologo /O2 /FdC:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpbuildRelWithDebInfongp.pdb /FS
/Zi /MD /GR» -o ngp.dirRelWithDebInfotestbed.obj «C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpsrctestbe
d.cu»” quit reture 1。 [C:UsersAdminPyOutCGAIinstant-ngpGiteeinstant-ngpbuildngp.vcxproj]

  • Remove From My Forums
  • Question

  • Hi,

    I just tried to compile a .cu file with Microsoft Visual Studio 2010 Professional.

    With .cpp files everything works fine, but when i enable the CUDA-compiler for a .cu file, VS 2010 gives me the following error:

    Error 2 error MSB3721: The command «»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5binnvcc.exe» -gencode=arch=compute_10,code=»sm_10,compute_10″ —use-local-env —cl-version 2010 -ccbin «C:Program Files
    (x86)Microsoft Visual Studio 10.0VCbin»  -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include» -I»C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include»  -G   —keep-dir Debug -maxrregcount=0 
    —machine 32 —compile -cudart static  -g   -DWIN32 -D_DEBUG -D_CONSOLE -D_UNICODE -DUNICODE -Xcompiler «/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd  » -o Debugkernels.cu.obj «S:s18004documentsvisual studio 2010Projectscudaprojekt12cudaprojekt12kernels.cu»»
    exited with code 2. C:Program Files (x86)MSBuildMicrosoft.Cppv4.0BuildCustomizationsCUDA 5.5.targets 592 10 cudaprojekt12

    Does someone know how to fix or workaround that?

    Thank you in advance,

    Liona

Answers

  • Hi Liona,

    Please check propertiess of the .cu file after building the project because the settings of .cu file and .cpp file are different.

    For example,make sure that you have chosen the right version of  Cuda compiler and set the propertiesto Compile with CUDA C/C++.

    For more details,please refer to the following links:

    How to Compile CUDA App is Visual Studio 2010?

    Error MSB3721 with Cuda 5.5 and VS 2010 Professional

    How to build CUDA 4.0 samples with Visual Studio?

    If the problems remain unresolved,please provide the sample code and detailed error message for further analysis.

    Best Regards.

    Jane.


    <THE CONTENT IS PROVIDED «AS IS» WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to «Mark as Answer» the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    • Marked as answer by

      Wednesday, September 4, 2013 12:35 AM



Pope Kim



Dec 16, 2013

  • cuda

So I finally decided to play with CUDA a bit. I love Visual Studio, so I created a CUDA project in VS2012(CUDA SDK doesn’t support VS2013 yet) and tried to compile it. But uhoh.. I got this error:

error MSB3721: The command ""C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5binnvcc.exe" -gencode=arch=compute_10,code="sm_10,compute_10" --use-local-env --cl-version 2012 -ccbin "C:Program Files (x86)Microsoft Visual Studio 11.0VCbin" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include" -I"C:Program FilesNVIDIA GPU Computing ToolkitCUDAv5.5include" -G --keep-dir Debug -maxrregcount=0  --machine 32 --compile -cudart static -g -DWIN32 -D_DEBUG -D_CONSOLE -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /Zi /RTC1 /MDd  " -o Debugkernel.cu.obj "C:testkernel.cu"" exited with code 1

I love how the error message doesn’t tell me anything about the error. Yay error code 1..

Anyways, It turns out that COMODO’s auto-sandbox is sandboxing it. I added nvcc.exe and msbuild.exe to the sandbox exception list, but I was still getting the same error. Eh.. I wish I could have found the permanant solution for this, but I ran out of ideas.

For now, temporarily disabling the autosandbox mode in COMODO whenever I wanna play with CUDA would cut it. Why can’t COMODO and NVIDIA work it out together?

Понравилась статья? Поделить с друзьями:
  • Error msb3073 ue4
  • Error msb3073 the command setlocal
  • Error msb3073 the command npm run build exited with code 1
  • Error msb3073 the command npm install exited with code 127
  • Error msb3073 cmake