建设CUDA样品的VS2010,WINDOWS7,64BIT时错误MSB3721 [英] error MSB3721 when building CUDA Samples for VS2010, WINDOWS7, 64BIT

查看:2726
本文介绍了建设CUDA样品的VS2010,WINDOWS7,64BIT时错误MSB3721的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装CUDA 5.5产品发布的默认安装目录结构。 然后我按照NVIDIA CUDA入门指南适用于Microsoft Windows。

的NVCC -V测试和deviceQuery.exe和bandwidthTest.exe正常工作在Windows命令促。

然后我尝试建立bandwidthTest项目(位于NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest)

一些错误弹出如下:

  1> ------生成开始:项目:bandwidthTest,配置:发行64 ------
1>建立开始2013年11月19号13点十三分41秒。
1> AddCudaCompileDeps:
1>跳绳目标AddCudaCompileDeps,因为所有输出文件都是最新相对于输入文件。
1> AddCudaCompilePropsDeps:
1>跳绳目标AddCudaCompilePropsDeps,因为所有输出文件都是最新相对于输入文件。
1> CudaBuild:
1> CUDA编译源文件bandwidthTest.cu ...
1> C:\用户\ IMI_User \应用程序数据\本地的\ Temp不被识别为一个内部或外部命令,
1>可运行的程序或批处理文件。
1> C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets(592,9):错误MSB3721:命令C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \ BIN \ nvcc.exe-gen code =弓= compute_10,code = \sm_10,compute_10 \-gen code =弓= compute_20,code = \sm_20,compute_20 \-gen code =弓= compute_30,code = \sm_30,compute_30 \-gen code =弓= compute_35,code = \ sm_35,compute_35 \ - 使用本地-ENV 2010 --cl版本-ccbinC:\ Program Files文件(x86)的\微软的Visual Studio 10.0 \ VC \ BIN \ x86_amd64-I / -I ../ ../common/inc -IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括-IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括 --keep-DIR 64 \发布-maxrregcount = 0 --machine 64 --compile -cudart静态-Xcompiler/ WD 4819-DWIN32 -D_MBCS -Xcompiler/ EHSC / W3 / NOLOGO / O2 /紫/ MT - Ø64 /发行/ bandwidthTest.cu.objC:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest.cu退出,code 1。
1>
1>构建失败。
1>
 

1)我富尔德在互联网上的一个解决方案:<一href="https://devtalk.nvidia.com/default/topic/533797/visual-studio-2010-how-to-fix-error-msb3721-exiting-with-$c$c-1/" rel="nofollow">https://devtalk.nvidia.com/default/topic/533797/visual-studio-2010-how-to-fix-error-msb3721-exiting-with-$c$c-1/ 这很像我的情况。它提到,这是杀毒软件导致此问题。 所以我卸载任何防病毒软件并重新安装CUDA 5.5的产品。重新启动计算机。但它并没有解决我的问题。 2)我发现了另一个解决方案,应该以管理员身份运行。再次,它不会帮助。 CUDA 4.2。工具箱和放大器; VS2010

我建设在NVIDIA公司\ CUDA样本\ V5.5另一个示例项目DEVICEQUERY \ 1_Utilities \ DEVICEQUERY并成功地。

谁能帮我这个问题,我这里?

bandwidthTest_vs2010.log

 生成开始二○一三年十一月二十零日12点24分19秒。
环境在构建开始:
MSBuildExtensionsPath32 = C:\ Program Files文件(x86)的\的MSBuild
MSBuildExtensionsPath64 = C:\ Program Files文件\的MSBuild
MSBuildExtensionsPath = C:\ Program Files文件(x86)的\的MSBuild
LOCALAPPDATA = C:\用户\ IMI_User \应用程序数据\本地
ALLUSERSPROFILE = C:\ ProgramData
APPDATA = C:\用户\ IMI_User \应用程序数据\漫游
BURN_AUTOPLAY = C:\ Program Files文件(x86)的\的Roxio \ OEM \ Roxio的烧伤\
COMMONPROGRAMFILES = C:\ Program Files文件(x86)的\ Common Files文件
CommonProgramW6432 = C:\ Program Files文件\ Common Files文件
COMPUTERNAME = IMI_USER-PC
COMSPEC = C:\ WINDOWS \ SYSTEM32 \ CMD.EXE
CUDA_PATH = C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5
CUDA_PATH_V5_5 = C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5
EMC_AUTOPLAY = C:\ Program Files文件(x86)的\ Common Files文件\ Roxio的共享\ OEM \
FP_NO_HOST_CHECK = NO
GNUPLOT_LIB = C:\ TMP \ gnuplot的\演示
HOMEDRIVE = C:
HOMEPATH = \用户\ IMI_User
LOGONSERVER = \\ IMI_USER-PC
MOZ_PLUGIN_PATH = C:\ Program Files文件(x86)的\福昕软件\福昕阅读器\插件\
NUMBER_OF_PROCESSORS = 4
NVCUDASAMPLES5_5_ROOT = C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5
NVCUDASAMPLES_ROOT = C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5
NVTOOLSEXT_PATH = C:\ Program Files文件\ NVIDIA公司\ NvToolsExt \
OS = Windows_NT
路径= C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \ BIN; C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \ libnvvp; C:\ Program Files文件\ MIKTEX 2.9 \ MIKTEX \ BIN \ 64 \; C:\ Program Files文件\共同文件\微软共享\的Windows Live; C:\ Program Files文件(x86)的\共同文件\微软共享\ Windows下Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program文件(x86)\英特尔\ SERVICES \ IPT \; C:\ Program Files文件(x86)的\ NTRU加密\ NTRU TCG软件堆栈\ BIN \; C:\ Program Files文件\ NTRU加密\ NTRU TCG软件堆栈\ BIN \的温度:\ Program Files文件\戴尔\戴尔数据保护\访问\高级\波\金雅拓\访问客户端\ V5 \; C:\ Program Files文件(x86)的\的Windows Live \共享; C:\ Program Files文件(x86)的\ Common Files文件\ Roxio的共享\ DLLShared \; C:\ Program Files文件(x86)的\ Common Files文件\ Roxio的共享\ OEM \ DLLShared \; C:\ Program Files文件(x86)的\ Common Files文件\ Roxio的共享\ OEM \ DLLShared \; C:\程序文件(x86)\ Common Files文件\ Roxio的共享\ OEM \ 12.0 \ DLLShared \; C:\ Program Files文件(x86)的\的Roxio \ OEM \ AudioCore \; C:\ Program Files文件(x86)的\ Microsoft SQL Server的\ 100 \ TOOLS \ BINN \; C:\ Program Files文件\ Microsoft SQL Server的\ 100 \ TOOLS \ BINN \; C:\ Program Files文件\ Microsoft SQL Server的\ 100 \ DTS \ BINN \; C:\ Program Files文件(x86)的\ MATLAB \ R2011b \ BIN \ WIN32; C:\ Program Files文件(x86)的\ Common Files文件\欧特克共享\; C:\ Program Files文件\ Common Files文件\欧特克共享\; C:\ Program Files文件(x86)的\ OpenCV的\建立\ 86 \ VC10 \ BIN; C:\ Program Files文件(x86)的\ OpenCV的\建立\ COMMON \ TBB \ IA32 \ VC10; C:\部署\ BIN \ WIN32 \发布; C:\ PROGRAM Files\MATLAB\R2011b\bin;D:\Research\SQA\$c$cS\opensmile-2.0-rc1\msvcbuild;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User\Scripts;C:\Program档(x86)\Git\cmd;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User\Scripts;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\System\Scripts
PATHEXT = .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS; .JSE; .WSF; .WSH; .MSC
PBRT_SEARCHPATH = C:\ PBRT-V1 \ PBRT-1.05 \ BIN
PROCESSOR_ARCHITECTURE = 86
PROCESSOR_ARCHITEW6432 = AMD64
PROCESSOR_IDENTIFIER = Intel64位家庭6 42型步进7,GenuineIntel
PROCESSOR_LEVEL = 6
PROCESSOR_REVISION = 2a07
ProgramData = C:\ ProgramData
PROGRAMFILES = C:\ Program Files文件(86)
ProgramW6432 = C:\ Program Files文件
PSModulePath = C:\ WINDOWS \ SYSTEM32 \ WindowsPowerShell \ V1.0 \模块\
PUBLIC = C:\用户\公用
RCAUTOPLAY = C:\ Program Files文件(x86)的\的Roxio \ OEM \ Roxio的中央5 \
SESSIONNAME =控制台
系统驱动器= C:
SYSTEMROOT = C:\ WINDOWS
TEMP = C:\用户\ IMI_User \应用程序数据\本地的\ Temp
TMP = C:\用户\ IMI_User \应用程序数据\本地\ TEMP_〜1
USERDOMAIN = IMI_User-PC
USERNAME = IMI_User
USERPROFILE = C:\用户\ IMI_User
VisualStudioDir = C:\用户\ IMI_User \文档\ Visual Studio 2010中
VS100COMNTOOLS = C:\ Program Files文件(x86)的\微软的Visual Studio 10.0 \ Common7 \工具\
WINDIR = C:\ WINDOWS
windows_tracing_flags = 3
windows_tracing_logfile = C:\ BVTBin \测试\ installpackage \ csilogfile.log

12:24:19.379 1&GT;项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj节点2(重建目标(S))。
12:24:19.379 1&GT;建筑用工具版本4.0。
12:24:19.379 1&GT;目标_CheckForInvalidConfigurationAndPlatform:(目标ID:2)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(入口点):
                   任务错误跳过,因为虚假的条件; ('$(_ InvalidConfigurationError)'=='真')的评价为(''=='真')。
                   任务警告跳过,因为虚假的条件; ('$(_ InvalidConfigurationWarning)'=='真')的评价为(''=='真')。
                   使用消息从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务消息(任务id:2)
                     配置=释放(TASKID:2)
                   完成执行任务消息。 (TASKID:2)
                   任务消息(任务id:3)
                     平台= 64(TASKID:3)
                   完成执行任务消息。 (TASKID:3)
                   任务错误跳过,因为虚假的条件; ('$(OUTDIR)!=和!HasTrailingSlash('$(OUTDIR)'))的评价为('../../bin/win64/Release/'!=''和!HasTrailingSlash(' ../../bin/win64/Release/'))。
                   任务错误跳过,因为虚假的条件; ('$(BaseIntermediateOutputPath)!=和!HasTrailingSlash('$(BaseIntermediateOutputPath)'))的评价为('物镜\'!=''和!HasTrailingSlash('物镜\'))。
                   任务错误跳过,因为虚假的条件; ($(IntermediateOutputPath)'!=''和!HasTrailingSlash('$(IntermediateOutputPath)'))被评价为('X64 /发行/'!=''和!HasTrailingSlash(64 /发行/'))。
12:24:19.400 1&GT;完成项目bandwidthTest_vs2010.vcxproj建设目标_CheckForInvalidConfigurationAndPlatform:(目标ID:2)
12:24:19.400 1&GT;目标_DetermineManagedStateFromCL:(目标ID:3)文件中的C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.CppBuild.targets从项目的C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标重建依赖于它):
12:24:19.400 1&GT;完成建设目标_DetermineManagedStateFromCL项目bandwidthTest_vs2010.vcxproj:(目标ID:3)
12:24:19.400 1&GT;目标_ prepareForRebuild:(目标ID:4)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.BuildSteps.Targets从项目C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标重建依赖于它):
12:24:19.401 1&GT;完成项目bandwidthTest_vs2010.vcxproj建设目标_ prepareForRebuild:(目标ID:4)
12:24:19.401 1&GT;目标BeforeRebuild:(目标ID:5)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标重建依赖于它):
12:24:19.401 1&GT;完成建设目标BeforeRebuild项目bandwidthTest_vs2010.vcxproj:(目标ID:5)
12:24:19.401 1&GT;目标_ prepareForClean:(目标ID:6)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.BuildSteps.Targets从项目C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
                   任务删除跳过,因为虚假的条件; (EXISTS($(LastBuildState)))被评价为(存在(X64 /发行/ bandwidthTest.lastbuildstate))。
12:24:19.401 1&gt;在完成项目建设目标_ prepareForCleanbandwidthTest_vs2010.vcxproj:(目标ID:6)
12:24:19.401 1&GT;目标BeforeClean:(目标ID:7)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
12:24:19.401 1&GT;完成建设目标BeforeClean项目bandwidthTest_vs2010.vcxproj:(目标ID:7)
                   目标UnmanagedUnregistration跳过,因为虚假的条件; ((('$(_ AssemblyTimestampBeforeCompile)!=$(_ AssemblyTimestampAfterCompile)'或'$(RegisterForComInterop)!=真或$(输出类型)!=库)或
                                       ($(_ AssemblyTimestampBeforeCompile)'==''))和
                                      存在('@(_ UnmanagedRegistrationCache)'))的评价为((('!=或!=真或的exe!=库)或
                                       (''==''))和
                                      存在('物镜\ bandwidthTest_vs2010.vcxproj.UnmanagedRegistration.cache'))。
12:24:19.401 1&GT;目标CoreClean:(目标ID:8)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
                   使用删除从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务删除(任务id:4)
                   完成执行任务删除。 (TASKID:4)
                   使用ReadLinesFromFile从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务ReadLinesFromFile(任务id:5)
                   完成执行任务ReadLinesFromFile。 (TASKID:5)
                   使用FindUnderPath从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务FindUnderPath(任务id:6)
                     比较路径是../../bin/win64/Release/。 (TASKID:6)
                   完成执行任务FindUnderPath。 (TASKID:6)
                   任务FindUnderPath(任务id:7)
                     比较路径是64 /发行/。 (TASKID:7)
                   完成执行任务FindUnderPath。 (TASKID:7)
                   任务删除(任务id:8)
                   完成执行任务删除。 (TASKID:8)
                   从装配使用RemoveDuplicates任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务RemoveDuplicates(任务id:9)
                   完成执行任务RemoveDuplicates。 (任务id:9)
                   使用MAKEDIR从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务MAKEDIR(任务id:10)
                   完成执行任务MAKEDIR。 (TASKID:10)
                   使用WriteLinesToFile从装配任务Microsoft.Build.Tasks.v4.0,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务WriteLinesToFile(任务id:11)
                   完成执行任务WriteLinesToFile。 (TASKID:11)
12:24:19.404 1&GT;完成建设目标CoreClean项目bandwidthTest_vs2010.vcxproj:(目标ID:8)
                   目标AssignProjectConfiguration跳过,因为虚假的条件; ('@(ProjectReference)!=)的评价为(''!='')。
12:24:19.404 1&GT;目标_SplitProjectReferencesByFileExistence:(目标ID:9)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CleanReferencedProjects依赖于它):
                   任务ResolveNonMSBuildProjectOutput跳过,因为虚假的条件; ('$(BuildingInsideVisualStudio)'=='真'和'@(ProjectReferenceWithConfiguration)!=)的评价为('真'=='真'和''!='')。
12:24:19.404 1&GT;完成项目bandwidthTest_vs2010.vcxproj:建设目标_SplitProjectReferencesByFileExistence(目标ID:9)
12:24:19.404 1&GT;目标CleanReferencedProjects:(目标ID:10)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
                   任务的MSBuild跳过,因为虚假的条件; ('$(BuildingInsideVisualStudio)!=真和$(BuildProjectReferences)'=='真'和'@(_ MSBuildProjectReferenceExistent)!=)的评价为(真!=真和真正的'=='真'和'!='')。
12:24:19.404 1&GT;完成项目bandwidthTest_vs2010.vcxproj建设目标CleanReferencedProjects:(目标ID:10)
12:24:19.404 1&GT;目标CleanPublishFolder:(目标ID:11)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
                   任务RemoveDir跳过,因为虚假的条件; ($(PublishDir)'=='$(OutputPath)app.publish \'并存($(PublishDir)'))被评价为('C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ 64 \发布\ app.publish \'=='C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ 64 \发布\ app.publish \'并存(C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ 64 \发布\ app.publish \'))。
12:24:19.404 1&GT;完成建设目标CleanPublishFolder项目bandwidthTest_vs2010.vcxproj:(目标ID:11)
12:24:19.404 1&GT;目标AfterClean:(目标ID:12)文件C:\ WINDOWS \ Microsoft.NET \框架\ v4.0.30319 \ Microsoft.Common.Targets从项目的C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标清洁依赖于它):
12:24:19.404 1&GT;完成建设目标AfterClean项目bandwidthTest_vs2010.vcxproj:(目标ID:12)
                   目标EntityClean跳过,因为虚假的条件; ('@(EntityDeploy)!=)的评价为(''!='')。
12:24:19.404 1&GT;目标BeforeCppClean:(目标ID:13)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.CppClean.targets从项目的C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CppClean依赖于它):
12:24:19.404 1&GT;完成建设目标BeforeCppClean项目bandwidthTest_vs2010.vcxproj:(目标ID:13)
12:24:19.404 1&GT;目标CoreCppClean:(目标ID:14)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.CppClean.targets从项目的C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CppClean依赖于它):
                   任务MAKEDIR(任务id:12)
                   完成执行任务MAKEDIR。 (TASKID:12)
                   使用CppClean任务从汇编Microsoft.Build.CppTasks.Common,版本= 4.0.0.0,文化=中性公钥= b03f5f7f11d50a3a。
                   任务CppClean(任务id:13)
                   完成执行任务CppClean。 (TASKID:13)
                   任务WriteLinesToFile(任务id:14)
                   完成执行任务WriteLinesToFile。 (TASKID:14)
12:24:19.409 1&GT;完成建设目标CoreCppClean项目bandwidthTest_vs2010.vcxproj:(目标ID:14)
12:24:19.409 1&GT;目标AfterCppClean:(目标ID:15)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.CppClean.targets从项目的C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CppClean依赖于它):
12:24:19.409 1&GT;完成建设目标AfterCppClean项目bandwidthTest_vs2010.vcxproj:(目标ID:15)
12:24:19.409 1&GT;目标PGInstrumentedClean:(目标ID:16)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ Microsoft.CppClean.targets从项目的C: \ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CppClean依赖于它):
                   任务删除(任务id:15)
                   完成执行任务删除。 (任务id:15)
12:24:19.409 1&GT;完成建设目标PGInstrumentedClean项目bandwidthTest_vs2010.vcxproj:(目标ID:16)
12:24:19.409 1&GT;目标InitializeCudaHostProperties:(目标ID:17)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets从项目的C :\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标AddCudaCompileMetadata依赖于它):
12:24:19.409 1&GT;完成项目bandwidthTest_vs2010.vcxproj建设目标InitializeCudaHostProperties:(目标ID:17)
12:24:19.410 1&GT;目标AddCudaCompileMetadata:(目标ID:18)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets从项目的C :\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CudaClean依赖于它):
                   建设目标AddCudaCompileMetadata的问题。
                   没有输入文件中指定。
                   从装配使用SanitizePaths任务C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ Nvda.Build.CudaTasks.v5.5.dll。
                   任务SanitizePaths(任务id:16)
                   完成执行任务SanitizePaths。 (任务id:16)
                   任务ReadLinesFromFile(任务id:17)
                   完成执行任务ReadLinesFromFile。 (任务id:17)
                   从装配使用SplitToItemMetadata任务C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ Nvda.Build.CudaTasks.v5.5.dll。
                   任务SplitToItemMetadata(任务id:18)
                   完成执行任务SplitToItemMetadata。 (任务id:18)
12:24:19.422 1&GT;完成建设目标AddCudaCompileMetadata项目bandwidthTest_vs2010.vcxproj:(目标ID:18)
12:24:19.422 1&GT;目标ValidateCudaBuild:(目标ID:19)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets从项目的C :\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CudaClean依赖于它):
                   任务错误跳过,因为虚假的条件; (!存在($(CudaToolkitDir)))被评价为(存在(C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \))。
12:24:19.422 1&GT;完成建设目标ValidateCudaBuild项目bandwidthTest_vs2010.vcxproj:(目标ID:19)
12:24:19.422 1&GT;目标CudaClean:(目标ID:20)文件C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets从项目的C :\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(目标CppClean依赖于它):
                   建设目标CudaClean的问题。
                   没有输入文件中指定。
                   从装配Microsoft.Build.Tasks.v4.0初始化任务工厂XamlTask​​Factory。
                   使用CudaCompile任务,从任务工厂XamlTask​​Factory。
                   任务CudaCompile(任务id:19)
                     CMD.EXE / CC:\用户\ IMI_User \应用程序数据\本地\温度; \ 8f2923f4a8704bedb3b1e52239ac5f64.cmd(任务id:19)
                     C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \ BIN \ nvcc.exe-ccbinC:\ Program Files文件(x86)的\微软的Visual Studio 10.0 \ VC \ BIN \ x86_amd64-I。 / -I ../../通用/ INC -IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括-IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括--keep-DIR 64 \发布-maxrregcount = 0 --machine 64 --compile -Xcompiler/ WD 4819-DWIN32 -D_MBCS -Xcompiler/ EHSC / W3 / NOLOGO / O2 /紫/ MT-o 64 /发行/ bandwidthTest.cu.objC:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest.cu - 清洁​​(任务id:19)
                     C:\用户\ IMI_User \应用程序数据\本地的\ Temp不被识别为一个内部或外部命令,(TASKID:19)
                     可运行的程序或批处理文件。 (任务id:19)
12:24:19.668 1&GT; C:\ Program Files文件(x86)的\的MSBuild \ Microsoft.Cpp \ V4.0 \ BuildCustomizations \ CUDA 5.5.targets(758,9):错误MSB3721:命令C:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \ BIN \ nvcc.exe-ccbinC:\ Program Files文件(x86)的\微软的Visual Studio 10.0 \ VC \ BIN \ x86_amd64-I / -I ../ ../common/inc -IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括-IC:\ Program Files文件\ NVIDIA GPU计算工具包\ CUDA \ V5.5 \包括 --keep-DIR 64 \发布-maxrregcount = 0 --machine 64 --compile -Xcompiler/ WD 4819-DWIN32 -D_MBCS -Xcompiler/ EHSC / W3 / NOLOGO / O2 /紫/ MT-o 64 /发布/ bandwidthTest.cu.objC:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest.cu-clean退出,code 1。
                   完成执行任务CudaCompile - 失败。 (任务id:19)
12:24:19.669 1&GT;完成项目bandwidthTest_vs2010.vcxproj建设目标CudaClean - 失败:(目标ID:20)
12:24:19.669 1&GT;完成建设项目C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj(重建目标(S)) - 失败。

项目性能概要:
      290毫秒C:\ ProgramData \ NVIDIA公司\ CUDA样本\ V5.5 \ 1_Utilities \ bandwidthTest \ bandwidthTest_vs2010.vcxproj 1通话
                290毫秒重建1通话

目标绩效摘要:
        0毫秒CleanReferencedProjects 1通话
        0毫秒CleanPublishFolder 1通话
        0毫秒AfterCppClean 1通话
        0毫秒PGInstrumentedClean 1通话
        0毫秒ValidateCudaBuild 1通话
        0毫秒BeforeCppClean 1通话
        0毫秒BeforeClean 1通话
        0毫秒_DetermineManagedStateFromCL 1通话
        0毫秒_SplitProjectReferencesByFileExistence 1通话
        0毫秒AfterClean 1通话
        0毫秒InitializeCudaHostProperties 1通话
        0毫秒BeforeRebuild 1通话
        0毫秒_ prepareForClean 1通话
        1毫秒_ prepareForRebuild 1通话
        3毫秒CoreClean 1通话
        5毫秒CoreCppClean 1通话
       12毫秒AddCudaCompileMetadata 1通话
       21毫秒_CheckForInvalidConfigurationAndPlatform 1通话
      247毫秒CudaClean 1通话

任务性能概要:
        0毫秒RemoveDuplicates 1通话
        0毫秒FindUnderPath 2呼叫
        0毫秒MAKEDIR 2呼叫
        1毫秒WriteLinesToFile 2呼叫
        2毫秒删除3个电话
        2毫秒SplitToItemMetadata 1通话
        2毫秒CppClean 1通话
        3毫秒ReadLinesFromFile 2呼叫
        3毫秒SanitizePaths 1通话
       15毫秒消息2呼叫
       45毫秒CudaCompile 1通话

构建失败。

已用时间00:00:00.28
 

解决方案

它看起来像你有一个;存储在TEMP环境变量的路径的末端。这应被删除作为TEMP变量是只有一个单一的路径,而不是的路径列表。在OS修改TEMP变量后,重新启动Visual Studio。

在Windows 7中,键入高级系统设置在Start按钮搜索字段。在高级选项卡,单击环境变量。点击 TEMP 用户变量,然后点击修改,然后取出的;从路径的末端。

编辑:

我刚刚注意到,在环境变量列表在日志的开头,没有;在 TEMP 路径的末尾,所以这可能不是解决办法。

最好的线索,我们必须发生了什么事情是这样的行:

  

CMD.EXE / CC:\用户\ IMI_User \应用程序数据\本地\温度; \ 8f2923f4a8704bedb3b1e52239ac5f64.cmd(任务id:19)

的;温度后是什么破坏构建。

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 Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest)

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:\Users\IMI_User\AppData\Local\Temp' is not recognized as an internal or external command,
1>  operable program or batch file.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets(592,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.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.0\VC\bin\x86_amd64"  -I./ -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"     --keep-dir x64\Release -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:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest.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 Corporation\CUDA Samples\v5.5\1_Utilities\deviceQuery 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 Files\MSBuild
MSBuildExtensionsPath = C:\Program Files (x86)\MSBuild
LOCALAPPDATA = C:\Users\IMI_User\AppData\Local
ALLUSERSPROFILE = C:\ProgramData
APPDATA = C:\Users\IMI_User\AppData\Roaming
BURN_AUTOPLAY = C:\Program Files (x86)\Roxio\OEM\Roxio Burn\
CommonProgramFiles = C:\Program Files (x86)\Common Files
CommonProgramW6432 = C:\Program Files\Common Files
COMPUTERNAME = IMI_USER-PC
ComSpec = C:\Windows\system32\cmd.exe
CUDA_PATH = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5
CUDA_PATH_V5_5 = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5
EMC_AUTOPLAY = C:\Program Files (x86)\Common Files\Roxio Shared\OEM\
FP_NO_HOST_CHECK = NO
GNUPLOT_LIB = C:\tmp\gnuplot\demo
HOMEDRIVE = C:
HOMEPATH = \Users\IMI_User
LOGONSERVER = \\IMI_USER-PC
MOZ_PLUGIN_PATH = C:\Program Files (x86)\Foxit Software\Foxit Reader\plugins\
NUMBER_OF_PROCESSORS = 4
NVCUDASAMPLES5_5_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5
NVCUDASAMPLES_ROOT = C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5
NVTOOLSEXT_PATH = C:\Program Files\NVIDIA Corporation\NvToolsExt\
OS = Windows_NT
Path = C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\libnvvp;C:\Program Files\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Services\IPT\;C:\Program Files (x86)\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\NTRU Cryptosystems\NTRU TCG Software Stack\bin\;C:\Program Files\Dell\Dell Data Protection\Access\Advanced\Wave\Gemalto\Access Client\v5\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\Common Files\Roxio Shared\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\DLLShared\;C:\Program Files (x86)\Common Files\Roxio Shared\OEM\12.0\DLLShared\;C:\Program Files (x86)\Roxio\OEM\AudioCore\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\; C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\MATLAB\R2011b\bin\win32;C:\Program Files (x86)\Common Files\Autodesk Shared\;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\opencv\build\x86\vc10\bin;C:\Program Files (x86)\opencv\build\common\tbb\ia32\vc10;C:\Deploy\bin\Win32\Release;C:\Program Files\MATLAB\R2011b\bin;D:\Research\SQA\CODES\opensmile-2.0-rc1\msvcbuild;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User\Scripts;C:\Program Files (x86)\Git\cmd;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User\Scripts;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\User;C:\Users\IMI_User\AppData\Local\Enthought\Canopy\System\Scripts
PATHEXT = .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PBRT_SEARCHPATH = C:\pbrt-v1\pbrt-1.05\bin
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:\Windows\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC = C:\Users\Public
RCAUTOPLAY = C:\Program Files (x86)\Roxio\OEM\Roxio Central 5\
SESSIONNAME = Console
SystemDrive = C:
SystemRoot = C:\Windows
TEMP = C:\Users\IMI_User\AppData\Local\Temp
TMP = C:\Users\IMI_User\AppData\Local\TEMP_~1
USERDOMAIN = IMI_User-PC
USERNAME = IMI_User
USERPROFILE = C:\Users\IMI_User
VisualStudioDir = C:\Users\IMI_User\Documents\Visual Studio 2010
VS100COMNTOOLS = c:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Tools\
windir = C:\Windows
windows_tracing_flags = 3
windows_tracing_logfile = C:\BVTBin\Tests\installpackage\csilogfile.log

12:24:19.379     1>Project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppBuild.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.BuildSteps.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.BuildSteps.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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('obj\bandwidthTest_vs2010.vcxproj.UnmanagedRegistration.cache')).
12:24:19.401     1>Target "CoreClean: (TargetId:8)" in file "c:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\x64\Release\app.publish\'=='C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\x64\Release\app.publish\' and Exists('C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\x64\Release\app.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:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.Targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppClean.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\Nvda.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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\Nvda.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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_vs2010.vcxproj" (target "CudaClean" depends on it):
                   Task "Error" skipped, due to false condition; (!Exists($(CudaToolkitDir))) was evaluated as (!Exists(C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets" from project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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:\Users\IMI_User\AppData\Local\Temp;\8f2923f4a8704bedb3b1e52239ac5f64.cmd" (TaskId:19)
                     "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe" -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64"  -I./ -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"     --keep-dir x64\Release -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:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest.cu" -clean (TaskId:19)
                     'C:\Users\IMI_User\AppData\Local\Temp' 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)\MSBuild\Microsoft.Cpp\v4.0\BuildCustomizations\CUDA 5.5.targets(758,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\bin\nvcc.exe" -ccbin "c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\x86_amd64"  -I./ -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include" -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v5.5\include"     --keep-dir x64\Release -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:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest.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:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_vs2010.vcxproj" (rebuild target(s)) -- FAILED.

Project Performance Summary:
      290 ms  C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.5\1_Utilities\bandwidthTest\bandwidthTest_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

解决方案

It looks like you have a ";" on the end of the path stored in your TEMP environment variable. This should be removed as the TEMP variable is only a single path, not a list of paths. After modifying the TEMP variable in the OS, restart Visual Studio.

In Windows 7, type advanced system settings in the Start button search field. In the Advanced tab, click Environment Variables. Click TEMP in User variables, then click Edit and remove the ";" from the end of the path.

Edit:

I just noticed that in the environment variable list at the beginning of the log, there is no ";" at the end of the TEMP path, so this might not be the solution.

The best clue we have to what's going on is this line:

cmd.exe /C "C:\Users\IMI_User\AppData\Local\Temp;\8f2923f4a8704bedb3b1e52239ac5f64.cmd" (TaskId:19)

The ";" after Temp is what is breaking the build.

这篇关于建设CUDA样品的VS2010,WINDOWS7,64BIT时错误MSB3721的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆