Encountered Error MSB3721 (Exiting with Code-2) While Trying To Build A Sample CUDA Program.

Hi , I recently installed CUDA 9.0 on my computer for the purpose of working with TensorFlow.
My GPU is GeForce 920 MX.

Upon following the instructions from NVidia’s site in setting up CUDA,
http://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/

I successfully compiled and run deviceQuery SAMPLE program. However, when i tried to build bandwidthTest SAMPLE program i encountered the following error code MSB3721.

Build Output:-

1>------ Rebuild All started: Project: bandwidthTest, Configuration: Debug x64 ------
1>Build started 13-12-2017 21:59:49.
1>Building with tools version "15.0".
1>Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
1>Target _CheckForInvalidConfigurationAndPlatform:
1>  Task "Error" skipped, due to false condition; ( '$(_InvalidConfigurationError)' == 'true' ) was evaluated as ( '' == 'true' ).
1>  Task "Warning" skipped, due to false condition; ( '$(_InvalidConfigurationWarning)' == 'true' ) was evaluated as ( '' == 'true' ).
1>  Using "Message" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "Message"
1>    Configuration=Debug
1>  Done executing task "Message".
1>  Task "Message"
1>    Platform=x64
1>  Done executing task "Message".
1>  Task "Error" skipped, due to false condition; ('$(OutDir)' != '' and !HasTrailingSlash('$(OutDir)')) was evaluated as ('../../bin/win64/Debug/' != '' and !HasTrailingSlash('../../bin/win64/Debug/')).
1>  Task "Error" skipped, due to false condition; ('$(BaseIntermediateOutputPath)' != '' and !HasTrailingSlash('$(BaseIntermediateOutputPath)')) was evaluated as ('obj
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully. != '' and !HasTrailingSlash('obj
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.)).
1>  Task "Error" skipped, due to false condition; ('$(IntermediateOutputPath)' != '' and !HasTrailingSlash('$(IntermediateOutputPath)')) was evaluated as ('x64/Debug/' != '' and !HasTrailingSlash('x64/Debug/')).
1>Target _PrepareForRebuild:
1>Target BeforeRebuild:
1>Target _PrepareForClean:
1>  Using "Delete" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "Delete"
1>    Deleting file "x64/Debug/bandwidthTest.tlog\bandwidthTest.lastbuildstate".
1>  Done executing task "Delete".
1>Target BeforeClean:
1>Target "UnmanagedUnregistration" skipped, due to false condition; ((('$(_AssemblyTimestampBeforeCompile)' != '$(_AssemblyTimestampAfterCompile)' or '$(RegisterForComInterop)' != 'true' or '$(OutputType)' != 'library') or
1>                    ('$(_AssemblyTimestampBeforeCompile)' == '')) and
1>                   Exists('@(_UnmanagedRegistrationCache)')) was evaluated as ((('' != '' or '' != 'true' or 'exe' != 'library') or
1>                    ('' == '')) and
1>                   Exists('obj\bandwidthTest_vs2017.vcxproj.UnmanagedRegistration.cache')).
1>Target CoreClean:
1>  Task "Delete"
1>    File "x64/Debug/\TempCA\bandwidthTest.pdb" doesn't exist. Skipping.
1>    File "x64/Debug/\TempCA\bandwidthTest.exe" doesn't exist. Skipping.
1>  Done executing task "Delete".
1>  Using "ReadLinesFromFile" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "ReadLinesFromFile"
1>  Done executing task "ReadLinesFromFile".
1>  Using "FindUnderPath" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "FindUnderPath"
1>    Comparison path is "../../bin/win64/Debug/".
1>  Done executing task "FindUnderPath".
1>  Task "FindUnderPath"
1>    Comparison path is "x64/Debug/".
1>  Done executing task "FindUnderPath".
1>  Task "Delete"
1>  Done executing task "Delete".
1>  Using "RemoveDuplicates" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "RemoveDuplicates"
1>  Done executing task "RemoveDuplicates".
1>  Using "MakeDir" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "MakeDir"
1>  Done executing task "MakeDir".
1>  Using "WriteLinesToFile" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "WriteLinesToFile"
1>  Done executing task "WriteLinesToFile".
1>Target AssignProjectConfiguration:
1>  Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "AssignProjectConfiguration"
1>  Done executing task "AssignProjectConfiguration".
1>Target _SplitProjectReferencesByFileExistence:
1>  Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('$(BuildingInsideVisualStudio)'=='true' and '@(ProjectReferenceWithConfiguration)'!='') was evaluated as ('true'=='true' and ''!='').
1>Target _GetProjectReferenceTargetFrameworkProperties:
1>  Using "MSBuild" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "MSBuild"
1>  Done executing task "MSBuild".
1>  Task "GetReferenceNearestTargetFrameworkTask" skipped, due to false condition; ('@(_ProjectReferenceTargetFrameworkPossibilities->Count())' != '0' and '$(ReferringTargetFrameworkForProjectReferences)' != '') was evaluated as ('0' != '0' and '.NETFramework,Version=v4.0' != '').
1>Target PrepareProjectReferences:
1>Target CleanReferencedProjects:
1>  Task "MSBuild" skipped, due to false condition; ('$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('true' != 'true' and 'true' == 'true' and '' != '').
1>Target CleanPublishFolder:
1>  Task "RemoveDir" skipped, due to false condition; ('$(PublishDir)'=='$(OutputPath)app.publish
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully. and Exists('$(PublishDir)')) was evaluated as ('../../bin/win64/Debug/app.publish
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.=='../../bin/win64/Debug/app.publish
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully. and Exists('../../bin/win64/Debug/app.publish
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.)).
1>Target AfterClean:
1>Target "EntityClean" skipped, due to false condition; ('@(EntityDeploy)' != '') was evaluated as ('' != '').
1>Target BeforeCppClean:
1>Target CoreCppClean:
1>  Task "MakeDir"
1>  Done executing task "MakeDir".
1>  Using "CppClean" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll".
1>  Task "CppClean"
1>  Done executing task "CppClean".
1>  Task "WriteLinesToFile"
1>  Done executing task "WriteLinesToFile".
1>Target AfterCppClean:
1>Target PGInstrumentedClean:
1>  Task "Delete"
1>  Done executing task "Delete".
1>Target InitializeCudaHostProperties:
1>Target AddCudaCompileMetadata:
1>  Building target "AddCudaCompileMetadata" completely.
1>  No input files were specified.
1>  Using "SanitizePaths" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "SanitizePaths"
1>  Done executing task "SanitizePaths".
1>  Task "ReadLinesFromFile"
1>  Done executing task "ReadLinesFromFile".
1>  Using "SplitToItemMetadata" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "SplitToItemMetadata"
1>  Done executing task "SplitToItemMetadata".
1>Target ValidateCudaBuild:
1>  Task "Error" skipped, due to false condition; (!Exists($(CudaToolkitDir))) was evaluated as (!Exists(C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\)).
1>Target CudaClean:
1>  Building target "CudaClean" completely.
1>  No input files were specified.
1>  Initializing task factory "XamlTaskFactory" from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Using "CudaCompile" task from the task factory "XamlTaskFactory".
1>  Task "CudaCompile"
1>    cmd.exe /C "C:\Users\Geetika\AppData\Local\Temp\tmp6661e9146ace47fab9c229dd9f952e59.cmd"
1>    "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile  -Xcompiler "/wd 4819"  -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu" -clean
1>
1>    C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile  -Xcompiler "/wd 4819"  -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu" -clean
1>    bandwidthTest.cu
1>  Done executing task "CudaCompile".
1>  Task "Delete"
1>    Deleting file "x64/Debug/bandwidthTest.cu-1274717266.deps".
1>  Done executing task "Delete".
1>Target CppClean:
1>Target Clean:
1>Target _PrepareForBuild:
1>  Task "CreateItem" skipped, due to false condition; ('%(CustomBuild.IncludeFileToTool)'!='') was evaluated as (''!='').
1>Target _PrepareForReferenceResolution:
1>  Task "Message" skipped, due to false condition; ('$(_REFERENCE_DEBUG)'=='true') was evaluated as (''=='true').
1>Target "ComputeCrtSDKReference" skipped, due to false condition; ('@(ClCompile)'!='' and '$(WindowsAppContainer)'=='true' and '$(UseCrtSDKReference)' != 'false') was evaluated as (''!='' and 'false'=='true' and '' != 'false').
1>Target BeforeResolveReferences:
1>Target "AssignProjectConfiguration" skipped. Previously built successfully.
1>Target "PrepareProjectReferences" skipped. Previously built successfully.
1>Target "_RemoveNameMetadataFromProjectReferenceItems" skipped, due to false condition; ('@(ProjectReference)'!='') was evaluated as (''!='').
1>Target ResolveProjectReferences:
1>  Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' != '10.0' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and ('true' == 'true' or 'true' != 'true') and '15.0' != '10.0' and '' != '').
1>  Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and ('$(BuildingInsideVisualStudio)' == 'true' or '$(BuildProjectReferences)' != 'true') and '$(VisualStudioVersion)' == '10.0' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and ('true' == 'true' or 'true' != 'true') and '15.0' == '10.0' and '' != '').
1>  Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingInsideVisualStudio)' != 'true' and '$(BuildProjectReferences)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' != 'true' and 'true' == 'true' and '' != '').
1>  Task "MSBuild" skipped, due to false condition; ('%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '$(BuildingProject)' == 'true' and '@(_MSBuildProjectReferenceExistent)' != '') was evaluated as ('' == 'true' and '' != '' and 'true' == 'true' and '' != '').
1>  Task "Warning" skipped, due to false condition; ('@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceNonexistent)' != '') was evaluated as ('' != '' and '' != '').
1>Target "FindInvalidProjectReferences" skipped, due to false condition; ('$(FindInvalidProjectReferences)' == 'true') was evaluated as ('' == 'true').
1>Target "ResolveNativeReferences" skipped, due to false condition; ('@(NativeReference)'!='') was evaluated as (''!='').
1>Target "_PrepareForReferenceResolution" skipped. Previously built successfully.
1>Target GetFrameworkPaths:
1>Target "GetWinFXPath" skipped, due to false condition; (('@(Page)' != '' or '@(ApplicationDefinition)' != '' or '@(Resource)' != '') and ('$(GetWinFXNativePath)' != '' or '$(GetWinFXWoWPath)' != '' )) was evaluated as (('' != '' or '' != '' or '' != '') and ('' != '' or '' != '' )).
1>Target GetReferenceAssemblyPaths:
1>  Task "GetReferenceAssemblyPaths" skipped, due to false condition; ('$(TargetFrameworkMoniker)' != '' and ('$(_TargetFrameworkDirectories)' == '' or '$(_FullFrameworkReferenceAssemblyPaths)' == '')) was evaluated as ('' != '' and ('C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '' or 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0' == '')).
1>Target SetBuildDefaultEnvironmentVariables:
1>  Using "SetEnv" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll".
1>  Task "SetEnv"
1>    PATH=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x86;C:\Program Files (x86)\Windows Kits0\bin0.0.15063.0\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools;C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\tools;C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\MSBuild5.0\Bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Calibre2\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\;C:\Users\Geetika\AppData\Local\Microsoft\WindowsApps;C:\adb;C:\Program Files\dotnet\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\;C:\Users\Geetika\AppData\Local\Microsoft\WindowsApps;C:\adb;;
1>  Done executing task "SetEnv".
1>  Task "SetEnv"
1>    LIB=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\lib\x64;;C:\Program Files (x86)\Windows Kits0\lib0.0.15063.0\ucrt\x64;;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\UnitTest\lib;C:\Program Files (x86)\Windows Kits0\lib0.0.15063.0\um\x64;lib\um\x64;;C:\Program Files (x86)\Windows Kits\NETFXSDK.6.1\Lib\um\x64
1>  Done executing task "SetEnv".
1>  Task "SetEnv"
1>    LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\lib\x64;
1>  Done executing task "SetEnv".
1>  Task "SetEnv"
1>    INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\include;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\include;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\include;;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\ucrt;;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\UnitTest\include;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\um;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\shared;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\winrt;Include\um;
1>  Done executing task "SetEnv".
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
1>Target GetResolvedWinMD:
1>Target PlatformPrepareForBuild:
1>  Task "VCMessage" skipped, due to false condition; ('$(_Error64bitToolsNotInstalled)' == 'true') was evaluated as ('' == 'true').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v110') was evaluated as (''!='true' and 'true' != 'true' and 'v141' == 'v110').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v100') was evaluated as (''!='true' and 'true' != 'true' and 'v141' == 'v100').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' == 'v90') was evaluated as (''!='true' and 'true' != 'true' and 'v141' == 'v90').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(_ToolsetFound)' != 'true' and '$(PlatformToolset)' != 'v90' and '$(PlatformToolset)' != 'v100' and '$(PlatformToolset)' != 'v110') was evaluated as (''!='true' and 'true' != 'true' and 'v141' != 'v90' and 'v141' != 'v100' and 'v141' != 'v110').
1>Target Desktop_PlatformPrepareForBuild:
1>  Task "VCMessage" skipped, due to false condition; ($(MissingSDKProps) == 'true') was evaluated as ( == 'true').
1>Target "GetFrameworkPaths" skipped. Previously built successfully.
1>Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
1>Target "AssignLinkMetadata" skipped, due to false condition; ( '$(SynthesizeLinkMetadata)' == 'true' ) was evaluated as ( '' == 'true' ).
1>Target SetCABuildNativeEnvironmentVariables:
1>  Initializing task factory "CodeTaskFactory" from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\MSBuild5.0\Bin\Microsoft.Build.Tasks.Core.dll".
1>  Using "SetEnvironmentVariable" task from the task factory "Code Task Factory".
1>  Task "SetEnvironmentVariable"
1>  Done executing task "SetEnvironmentVariable".
1>Target PrepareForBuild:
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)' != 'true' and '$(ConfigurationPlatformExists)' != 'true') was evaluated as ('' != 'true' and 'true' != 'true').
1>  Task "MakeDir"
1>  Done executing task "MakeDir".
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(WindowsAppContainer)'=='true' and '$(ConfigurationType)'!='Application' and '$(ConfigurationType)'!='DynamicLibrary' and '$(ConfigurationType)'!='StaticLibrary') was evaluated as (''!='true' and 'false'=='true' and 'Application'!='Application' and 'Application'!='DynamicLibrary' and 'Application'!='StaticLibrary').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCToolsInstallDir)'=='' and '$(UseEnv)' != 'true' and ('$(TargetFrameworkVersion)'=='v3.5' or '$(TargetFrameworkVersion)'=='v3.0' or '$(TargetFrameworkVersion)'=='v2.0' )) was evaluated as (''!='true' and 'C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.=='' and '' != 'true' and ('v4.0'=='v3.5' or 'v4.0'=='v3.0' or 'v4.0'=='v2.0' )).
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCToolsInstallDir)'=='' and '$(UseEnv)' != 'true' and '$(PlatformToolset)'=='v90') was evaluated as (''!='true' and 'C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.=='' and '' != 'true' and 'v141'=='v90').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(VCToolsInstallDir)'=='' and '$(UseEnv)' != 'true') was evaluated as (''!='true' and 'C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.=='' and '' != 'true').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(WindowsSDKDir)'=='' and '$(UseEnv)' != 'true') was evaluated as (''!='true' and 'C:\Program Files (x86)\Windows Kits0
I found a couple of other threads with similar error reports but couldn't find a complete/concrete answer anywhere.Please help since i'm trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.=='' and '' != 'true').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(IntDirTrailingSlashWarning)'=='true') was evaluated as (''!='true' and ''=='true').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(OutDirTrailingSlashWarning)'=='true') was evaluated as (''!='true' and ''=='true').
1>  Task "VCMessage" skipped, due to false condition; ('%(CompatibilityIssues.Identity)' != '' and '$(DesignTimeBuild)'!='true') was evaluated as ('' != '' and ''!='true').
1>  Task "VCMessage" skipped, due to false condition; ('$(IgnoreWarnIntDirSharingDetected)' != 'true' and '$(IntDirSharingDetected)' == 'true') was evaluated as ('' != 'true' and '' == 'true').
1>  Task "VCMessage" skipped, due to false condition; ('$(DesignTimeBuild)'!='true' and '$(IgnoreWarnIntDirInTempDetected)' != 'true' and ('$(_IntDirFullpath.StartsWith($(Tmp), true, null))' == 'true' or '$(_IntDirFullpath.StartsWith($(Temp), true, null))' == 'true' or '$(_OutDirFullpath.StartsWith($(Tmp), true, null))' == 'true' or '$(_OutDirFullpath.StartsWith($(Temp), true, null))' == 'true')) was evaluated as (''!='true' and '' != 'true' and ('False' == 'true' or 'False' == 'true' or 'False' == 'true' or 'False' == 'true')).
1>  Task "MakeDir"
1>  Done executing task "MakeDir".
1>Target "_PrepareForReferenceResolution" skipped. Previously built successfully.
1>Target "ComputeCrtSDKReference" skipped, due to false condition; ('@(ClCompile)'!='' and '$(WindowsAppContainer)'=='true' and '$(UseCrtSDKReference)' != 'false') was evaluated as (''!='' and 'false'=='true' and '' != 'false').
1>Target "GetInstalledSDKLocations" skipped, due to false condition; ('@(SDKReference)' != '') was evaluated as ('' != '').
1>Target ResolveSDKReferences:
1>  Task "ResolveSDKReference" skipped, due to false condition; ('@(SDKReference)'!='') was evaluated as (''!='').
1>Target "ResolveSDKReferences" skipped. Previously built successfully.
1>Target ExpandSDKReferences:
1>  Task "GetSDKReferenceFiles" skipped, due to false condition; ('@(ResolvedSDKReference)'!='') was evaluated as (''!='').
1>Target "ResolveNuGetPackageAssets" skipped, due to false condition; ('$(ResolveNuGetPackages)' == 'true' and exists('$(ProjectLockFile)')) was evaluated as ('true' == 'true' and exists('obj\project.assets.json')).
1>Target "ImplicitlyExpandNETStandardFacades" skipped, due to false condition; ('$(ImplicitlyExpandNETStandardFacades)' == 'true') was evaluated as ('' == 'true').
1>Target "GetReferenceAssemblyPaths" skipped. Previously built successfully.
1>Target "ImplicitlyExpandNETStandardFacades" skipped, due to false condition; ('$(ImplicitlyExpandNETStandardFacades)' == 'true') was evaluated as ('' == 'true').
1>Target _HandlePackageFileConflicts:
1>  Using "ResolvePackageFileConflicts" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\MSBuild\Microsoft\Microsoft.NET.Build.Extensions\tools\net46\Microsoft.NET.Build.Extensions.Tasks.dll".
1>  Task "ResolvePackageFileConflicts"
1>  Done executing task "ResolvePackageFileConflicts".
1>Target ResolveAssemblyReferences:
1>  Task "ResolveAssemblyReference" skipped, due to false condition; ('@(Reference)'!='' or '@(_ResolvedProjectReferencePaths)'!='' or '@(_ExplicitReference)' != '') was evaluated as (''!='' or ''!='' or '' != '').
1>Target "GenerateBindingRedirects" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true') was evaluated as ('' == 'true' and 'true' == 'true').
1>Target "GenerateBindingRedirectsUpdateAppConfig" skipped, due to false condition; ('$(AutoGenerateBindingRedirects)' == 'true' and '$(GenerateBindingRedirectsOutputType)' == 'true' and Exists('$(_GenerateBindingRedirectsIntermediateAppConfig)')) was evaluated as ('' == 'true' and 'true' == 'true' and Exists('x64/Debug/bandwidthTest.exe.config')).
1>Target "ResolveComReferences" skipped, due to false condition; ('@(COMReference)'!='' or '@(COMFileReference)'!='') was evaluated as (''!='' or ''!='').
1>Target AfterResolveReferences:
1>Target "ImplicitlyExpandDesignTimeFacades" skipped, due to false condition; ('$(ImplicitlyExpandDesignTimeFacades)' == 'true') was evaluated as ('' == 'true').
1>Target "ResolveTestReferences" skipped, due to false condition; ('@(Shadow)'!='') was evaluated as (''!='').
1>Target ResolveReferences:
1>Target "ResolveAdditionalReferenceCopyLocalPathsForIIS" skipped, due to false condition; ('$(BuildForIIS)' == 'true') was evaluated as ('' == 'true').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target InitializeBuildStatus:
1>  Task "ReadLinesFromFile"
1>  Done executing task "ReadLinesFromFile".
1>  Task "WriteLinesToFile"
1>  Done executing task "WriteLinesToFile".
1>  Using "Touch" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "Touch"
1>    Touching "x64/Debug/bandwidthTest.tlog\unsuccessfulbuild".
1>  Done executing task "Touch".
1>Target "PrepareProjectReferences" skipped. Previously built successfully.
1>Target BuildGenerateSourcesTraverse:
1>  Task "MSBuild" skipped, due to false condition; ('$(BuildPassReferences)' == 'true' and '@(ProjectReferenceWithConfiguration)' != '' and '@(_MSBuildProjectReferenceExistent)' != '' and '%(_MSBuildProjectReferenceExistent.BuildReference)' == 'true') was evaluated as ('' == 'true' and '' != '' and '' != '' and '' == 'true').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "ResolveReferences" skipped. Previously built successfully.
1>Target BeforeBuildGenerateSources:
1>Target PreBuildEvent:
1>  Task "Message" skipped, due to false condition; ('%(PreBuildEvent.Message)' != '' and '%(PreBuildEvent.Command)' != '') was evaluated as ('' != '' and '' != '').
1>  Task "Exec" skipped, due to false condition; ('%(PreBuildEvent.Command)' != '') was evaluated as ('' != '').
1>Target "CustomBuild" skipped, due to false condition; ('@(CustomBuild)' != '') was evaluated as ('' != '').
1>Target "FxExport" skipped, due to false condition; ('@(FxCompile)' != '') was evaluated as ('' != '').
1>Target "FxCompile" skipped, due to false condition; ('@(FxCompile)' != '') was evaluated as ('' != '').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully.
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
1>Target _SelectedFiles:
1>Target "CudaFilterSelectedFiles" skipped, due to false condition; ('@(SelectedFiles)' != '') was evaluated as ('' != '').
1>Target "AddCudaCompileMetadata" skipped. Previously built successfully.
1>Target "AddCudaCompileMetadata" skipped. Previously built successfully.
1>Target "InitializeCudaHostProperties" skipped. Previously built successfully.
1>Target "AddCudaCompileMetadata" skipped. Previously built successfully.
1>Target InitializeCudaProjectProperties:
1>  Task "SplitToItemMetadata"
1>  Done executing task "SplitToItemMetadata".
1>Target AddCudaLinkMetadata:
1>  Building target "AddCudaLinkMetadata" completely.
1>  No input files were specified.
1>  Using "ResolvePaths" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "ResolvePaths"
1>  Done executing task "ResolvePaths".
1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully.
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "AddCudaCompileMetadata" skipped. Previously built successfully.
1>Target AddCudaCompileDeps:
1>  Building target "AddCudaCompileDeps" completely.
1>  Output file "x64/Debug/bandwidthTest.cu-1274717266.deps" does not exist.
1>  Using "GenerateDeps" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "GenerateDeps"
1>    C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64\cl.exe /E /nologo /showIncludes /TP /D__CUDACC__ /DWIN32 /DWIN32 /D_MBCS /D_MBCS /I./ /I../../common/inc /I./ /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" /I../../common/inc /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin" /I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include" /I. /FIcuda_runtime.h /c "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"
1>  Done executing task "GenerateDeps".
1>  Task "MakeDir"
1>  Done executing task "MakeDir".
1>  Task "WriteLinesToFile"
1>  Done executing task "WriteLinesToFile".
1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully.
1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
1>Target "PrepareForBuild" skipped. Previously built successfully.
1>Target "AddCudaCompileMetadata" skipped. Previously built successfully.
1>Target AddCudaCompilePropsDeps:
1>  Building target "AddCudaCompilePropsDeps" completely.
1>  Output file "x64/Debug/bandwidthTest.cu.cache" does not exist.
1>  Task "ReadLinesFromFile" skipped, due to false condition; (Exists('%(CudaCompile.PropsCacheOutputPath)')) was evaluated as (Exists('x64/Debug/bandwidthTest.cu.cache')).
1>  Using "XmlPeek" task from assembly "Microsoft.Build.Tasks.Core, Version=15.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>  Task "XmlPeek"
1>    Found "CudaToolkitCustomDir".
1>    Found "AdditionalDeps".
1>    Found "CompileOut".
1>    Found "Include".
1>    Found "UseHostInclude".
1>    Found "Keep".
1>    Found "KeepDir".
1>    Found "GenerateRelocatableDeviceCode".
1>    Found "NvccCompilation".
1>    Found "CudaRuntime".
1>    Found "NvccPath".
1>    Found "RequiredIncludes".
1>    Found "TargetMachinePlatform".
1>    Found "InterleaveSourceInPTX".
1>    Found "CodeGeneration".
1>    Found "GPUDebugInfo".
1>    Found "GenerateLineInfo".
1>    Found "MaxRegCount".
1>    Found "PtxAsOptionV".
1>    Found "AdditionalCompilerOptions".
1>    Found "Defines".
1>    Found "UseHostDefines".
1>    Found "Emulation".
1>    Found "HostDebugInfo".
1>    Found "FastMath".
1>    Found "Optimization".
1>    Found "Runtime".
1>    Found "RuntimeChecks".
1>    Found "TypeInfo".
1>    Found "Warning".
1>    Found "AdditionalOptions".
1>    Found "CommandLineTemplate".
1>    Found "PerformDeviceLink".
1>    Found "LinkOut".
1>    Found "AdditionalLibraryDirectories".
1>    Found "UseHostLibraryDirectories".
1>    Found "AdditionalDependencies".
1>    Found "UseHostLibraryDependencies".
1>    Found "GPUDebugInfo".
1>    Found "Optimization".
1>    Found "CodeGeneration".
1>    Found "TargetMachinePlatform".
1>    Found "Warning".
1>    Found "RuntimeChecks".
1>    Found "Runtime".
1>    Found "TypeInfo".
1>    Found "AdditionalCompilerOptions".
1>    Found "Inputs".
1>    Found "AdditionalOptions".
1>    Found "CommandLineTemplate".
1>  Done executing task "XmlPeek".
1>  Using "ReadMetadataLinesFromItems" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "ReadMetadataLinesFromItems"
1>  Done executing task "ReadMetadataLinesFromItems".
1>  Task "WriteLinesToFile"
1>  Done executing task "WriteLinesToFile".
1>Target "ValidateCudaBuild" skipped. Previously built successfully.
1>Target ValidateCudaCodeGeneration:
1>  Building target "ValidateCudaCodeGeneration" completely.
1>  No input files were specified.
1>  Using "CountItems" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "CountItems"
1>  Done executing task "CountItems".
1>  Task "Error" skipped, due to false condition; ('%(CudaCompile.NvccCompilation)' != 'compile' AND $(ValidateCudaCodeGenerationCount) > 1) was evaluated as ('compile' != 'compile' AND 7 > 1).
1>Target ComputeCudaCompileOutput:
1>  Building target "ComputeCudaCompileOutput" completely.
1>  No input files were specified.
1>Target PrepareForCudaBuild:
1>  Task "SanitizePaths"
1>  Done executing task "SanitizePaths".
1>  Using "CudaSetEnvironmentVariable" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>  Task "CudaSetEnvironmentVariable"
1>    Nvda.Build.CudaTasks.CudaSetEnvironmentVariable: Setting 'CUDAFE_FLAGS' to '--sdk_dir "C:\Program Files (x86)\Windows Kits0"'
1>  Done executing task "CudaSetEnvironmentVariable".
1>Target CudaBuild:
1>  Task "MSBuild"
1>    Overriding Global Properties for project "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest_vs2017.vcxproj" with:
1>      Platform=x64
1>      Configuration=Debug
1>      __CompileIn=C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu
1>      __CompileRelativeDir=
1>      __CompileFilename=bandwidthTest
1>      __CompileOut=x64/Debug/bandwidthTest.cu.obj
1>      __ProjectDeps=bandwidthTest_vs2017.vcxproj
1>      __Deps=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include\cuda_runtime.h;c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\host_config.h;c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h
1>      __AdditionalDependencies=
1>      __SelectedFilesDep=
1>      __ExcludedFromBuild=
1>      __ExecutionDescription=Compiling CUDA source file bandwidthTest.cu...
1>      __ExclusionDescription=Skipping CUDA source file bandwidthTest.cu %28excluded from build%29.
1>      __Api=Runtime
1>      __AdditionalCompilerOptions=
1>      __AdditionalDeps=
1>      __Include=./;../../common/inc;./;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include;../../common/inc
1>      __GenerateRelocatableDeviceCode=false
1>      __NvccCompilation=compile
1>      __CudaRuntime=Static
1>      __NvccPath=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe
1>      __RequiredIncludes=C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include
1>      __TargetMachinePlatform=64
1>      __InterleaveSourceInPTX=false
1>      __CodeGeneration=arch=compute_30,code=\"sm_30,compute_30\"	arch=compute_35,code=\"sm_35,compute_35\"	arch=compute_37,code=\"sm_37,compute_37\"	arch=compute_50,code=\"sm_50,compute_50\"	arch=compute_52,code=\"sm_52,compute_52\"	arch=compute_60,code=\"sm_60,compute_60\"	arch=compute_70,code=\"sm_70,compute_70\"
1>      __GPUDebugInfo=true
1>      __GenerateLineInfo=false
1>      __Keep=false
1>      __KeepDir=x64\Debug
1>      __MaxRegCount=0
1>      __PtxAsOptionV=false
1>      __Defines=WIN32	WIN32	_MBCS	_MBCS
1>      __Emulation=false
1>      __HostDebugInfo=true
1>      __FastMath=false
1>      __Optimization=Od
1>      __Runtime=MTd
1>      __RuntimeChecks=RTC1
1>      __TypeInfo=
1>      __AdditionalCompilerOptions=
1>      __Warning=W3
1>      __AdditionalOptions=-Xcompiler "/wd 4819"
1>      __CommandLineTemplate="C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" [CodeGeneration] --use-local-env --cl-version 2017 -ccbin "C:\Program Files %28x86%29\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu [GenerateRelocatableDeviceCode] [Include] [RequiredIncludes] [InterleaveSourceInPTX] [GPUDebugInfo] [GenerateLineInfo] [Keep] [KeepDir] [MaxRegCount] [PtxAsOptionV] [TargetMachinePlatform] [NvccCompilation] [CudaRuntime] [AdditionalOptions] [HostDebugInfo] [Emulation] [FastMath] [Defines] -Xcompiler "/EHsc [Warning] /nologo [Optimization] /FS /Zi [RuntimeChecks] [Runtime] [TypeInfo]" [CompileOut] "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"
1>    Building with tools version "15.0".
1>    Project file contains ToolsVersion="4.0". This toolset may be unknown or missing, in which case you may be able to resolve this by installing the appropriate version of MSBuild, or the build may have been forced to a particular ToolsVersion for policy reasons. Treating the project as if it had ToolsVersion="15.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
1>    Target SetBuildDefaultEnvironmentVariables:
1>      Using "SetEnv" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\Microsoft.Build.CppTasks.Common.dll".
1>      Task "SetEnv"
1>        PATH=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x86;C:\Program Files (x86)\Windows Kits0\bin0.0.15063.0\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools;C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\tools;C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\MSBuild5.0\Bin;C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\;;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\libnvvp;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files\Calibre2\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\;C:\Users\Geetika\AppData\Local\Microsoft\WindowsApps;C:\adb;C:\Program Files\dotnet\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\Geetika\AppData\Local\Programs\Python\Python36-32\;C:\Users\Geetika\AppData\Local\Microsoft\WindowsApps;C:\adb;;
1>      Done executing task "SetEnv".
1>      Task "SetEnv"
1>        LIB=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\lib\x64;;C:\Program Files (x86)\Windows Kits0\lib0.0.15063.0\ucrt\x64;;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\UnitTest\lib;C:\Program Files (x86)\Windows Kits0\lib0.0.15063.0\um\x64;lib\um\x64;;C:\Program Files (x86)\Windows Kits\NETFXSDK.6.1\Lib\um\x64
1>      Done executing task "SetEnv".
1>      Task "SetEnv"
1>        LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\lib\x64;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\lib\x64;
1>      Done executing task "SetEnv".
1>      Task "SetEnv"
1>        INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\include;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\atlmfc\include;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\include;;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\ucrt;;;C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Auxiliary\VS\UnitTest\include;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\um;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\shared;C:\Program Files (x86)\Windows Kits0\Include0.0.15063.0\winrt;Include\um;
1>      Done executing task "SetEnv".
1>    Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '' and '$(DesignTimeBuild)' != 'true') was evaluated as ('' != '' and '' != 'true').
1>    Target PrepareForCudaBuild:
1>      Using "SanitizePaths" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>      Task "SanitizePaths"
1>      Done executing task "SanitizePaths".
1>      Using "CudaSetEnvironmentVariable" task from assembly "C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll".
1>      Task "CudaSetEnvironmentVariable"
1>        Nvda.Build.CudaTasks.CudaSetEnvironmentVariable: Setting 'CUDAFE_FLAGS' to '--sdk_dir "C:\Program Files (x86)\Windows Kits0"'
1>      Done executing task "CudaSetEnvironmentVariable".
1>    Target CudaBuildCore:
1>      Building target "CudaBuildCore" completely.
1>      Output file "x64/Debug/bandwidthTest.cu.obj" does not exist.
1>      Task "Message"
1>        Compiling CUDA source file bandwidthTest.cu...
1>      Done executing task "Message".
1>      Task "Message" skipped, due to false condition; ('$(__ExcludedFromBuild)' == 'true') was evaluated as ('' == 'true').
1>      Task "MakeDir" skipped, due to false condition; (!Exists('$(CompileOutDir)')) was evaluated as (!Exists('C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\x64\Debug')).
1>      Task "MakeDir" skipped, due to false condition; ('$(__Keep)' == 'true' AND !Exists('$(__KeepDir)')) was evaluated as ('false' == 'true' AND !Exists('x64\Debug')).
1>      Initializing task factory "XamlTaskFactory" from assembly "Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
1>      Using "CudaCompile" task from the task factory "XamlTaskFactory".
1>      Task "CudaCompile"
1>        cmd.exe /C "C:\Users\Geetika\AppData\Local\Temp\tmpd9c9b8514eae4affbbc7801c0af2c77c.cmd"
1>        "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile -cudart static -Xcompiler "/wd 4819" -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"
1>
1>        C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest>"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile -cudart static -Xcompiler "/wd 4819" -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"
1>        c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
1>        bandwidthTest.cu
1>        C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 9.0.targets(707,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile -cudart static -Xcompiler "/wd 4819" -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"" exited with code 2.
1>      Done executing task "CudaCompile" -- FAILED.
1>    Done building target "CudaBuildCore" in project "bandwidthTest_vs2017.vcxproj" -- FAILED.
1>
1>    Done building project "bandwidthTest_vs2017.vcxproj" -- FAILED.
1>  Done executing task "MSBuild" -- FAILED.
1>
1>Done building project "bandwidthTest_vs2017.vcxproj" -- FAILED.
1>
1>Build FAILED.
1>
1>c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\crt/host_config.h(133): fatal error C1189: #error:  -- unsupported Microsoft Visual Studio version! Only the versions 2012, 2013, 2015 and 2017 are supported!
1>C:\Program Files (x86)\Microsoft Visual Studio017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations\CUDA 9.0.targets(707,9): error MSB3721: The command ""C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\nvcc.exe" -gencode=arch=compute_30,code=\"sm_30,compute_30\" -gencode=arch=compute_35,code=\"sm_35,compute_35\" -gencode=arch=compute_37,code=\"sm_37,compute_37\" -gencode=arch=compute_50,code=\"sm_50,compute_50\" -gencode=arch=compute_52,code=\"sm_52,compute_52\" -gencode=arch=compute_60,code=\"sm_60,compute_60\" -gencode=arch=compute_70,code=\"sm_70,compute_70\" --use-local-env --cl-version 2017 -ccbin "C:\Program Files (x86)\Microsoft Visual Studio017\Community\VC\Tools\MSVC4.12.25827\bin\HostX86\x64" -x cu  -I./ -I../../common/inc -I./ -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include" -I../../common/inc -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include"  -G   --keep-dir x64\Debug -maxrregcount=0  --machine 64 --compile -cudart static -Xcompiler "/wd 4819" -g   -DWIN32 -DWIN32 -D_MBCS -D_MBCS -Xcompiler "/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj "C:\ProgramData\NVIDIA Corporation\CUDA Samples\v9.0_Utilities\bandwidthTest\bandwidthTest.cu"" exited with code 2.
1>    0 Warning(s)
1>    2 Error(s)
1>
1>Time Elapsed 00:00:35.72
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I found a couple of other threads with similar error reports but couldn’t find a complete/concrete answer anywhere.Please help since i’m trying to start with TensorFlow , the guide at the link i have pasted above says to make sure both the SAMPLE programs run successfully.

1 Like