cuda samples compilation problem on Windows 10 (x64)+Geforce GTX1050

I have a laptop with Windows 10(x64) operating system and Geforce GTX1050. Using Visual studio 12(2013) i can compile the deviceQuery sample program in Cuda samples, but i cannot compile bandwidthTest program in anyway.
I tried cuda v9.0,
updated the graphics card driver using GeForce experience,
installed cuda v8.0 and cuda v7.5 with customized setup option without reinstalling graphics card driver (because the proposed drivers of these versions were said to be incompatible with the hardware in my laptop).
I also added the following paths to the system path due to some advices in the forums to solve some encountered visual studio errors.

C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vx.x\lib\x64
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vx.x\include
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vx.x\bin
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\vx.x\libnvvp
C:\Program Files (x86)\Microsoft Visual Studio 12.0\ (VSINSTALLDIR)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\ (VCINSTALLDIR)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64

I uninstalled Vulkan (said to be a program for gamers downloaded along with the driver), disabled the antivirus program+windows firewall without knowing whether they prevent the communication with the card.
I changed the main path names in system so that they contain no native characters.
However none of these attempts worked. For every version of cuda toolkit, deviceQuery worked but bandwidthTest failed. Result of deviceQuery is as follows with cuda v9.0:

C:\cudaSamples\v9.0\1_Utilities\deviceQuery…/…/bin/win64/Debug/deviceQuery.exe Starting…

CUDA Device Query (Runtime API) version (CUDART static linking)

Detected 1 CUDA Capable device(s)

Device 0: “GeForce GTX 1050”
CUDA Driver Version / Runtime Version 9.1 / 9.0
CUDA Capability Major/Minor version number: 6.1
Total amount of global memory: 4096 MBytes (4294967296 bytes)
( 5) Multiprocessors, (128) CUDA Cores/MP: 640 CUDA Cores
GPU Max Clock rate: 1493 MHz (1.49 GHz)
Memory Clock rate: 3504 Mhz
Memory Bus Width: 128-bit
L2 Cache Size: 524288 bytes
Maximum Texture Dimension Size (x,y,z) 1D=(131072), 2D=(131072, 65536), 3D=(16384, 16384, 16384)
Maximum Layered 1D Texture Size, (num) layers 1D=(32768), 2048 layers
Maximum Layered 2D Texture Size, (num) layers 2D=(32768, 32768), 2048 layers
Total amount of constant memory: 65536 bytes
Total amount of shared memory per block: 49152 bytes
Total number of registers available per block: 65536
Warp size: 32
Maximum number of threads per multiprocessor: 2048
Maximum number of threads per block: 1024
Max dimension size of a thread block (x,y,z): (1024, 1024, 64)
Max dimension size of a grid size (x,y,z): (2147483647, 65535, 65535)
Maximum memory pitch: 2147483647 bytes
Texture alignment: 512 bytes
Concurrent copy and kernel execution: Yes with 2 copy engine(s)
Run time limit on kernels: Yes
Integrated GPU sharing Host Memory: No
Support host page-locked memory mapping: Yes
Alignment requirement for Surfaces: Yes
Device has ECC support: Disabled
CUDA Device Driver Mode (TCC or WDDM): WDDM (Windows Display Driver Model)
Device supports Unified Addressing (UVA): Yes
Supports Cooperative Kernel Launch: No
Supports MultiDevice Co-op Kernel Launch: No
Device PCI Domain ID / Bus ID / location ID: 0 / 1 / 0
Compute Mode:
< Default (multiple host threads can use ::cudaSetDevice() with device simultaneously) >

deviceQuery, CUDA Driver = CUDART, CUDA Driver Version = 9.1, CUDA Runtime Version = 9.0, NumDevs = 1
Result = PASS
Press any key to continue . . .

The output of VS2013 with the detailed verbosity option for bandwidthTest program for cuda v9.0:

1>------ Build started: Project: bandwidthTest, Configuration: Debug x64 ------
1>Build started 13.10.2017 15:18:06.
1>Building with tools version “12.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=“12.0”. For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424.
1>Target “_CheckForInvalidConfigurationAndPlatform” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (entry point):
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.v12.0, Version=12.0.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’ != ‘’ and !HasTrailingSlash(‘obj’)).
1>Task “Error” skipped, due to false condition; (’(IntermediateOutputPath)' != '' and !HasTrailingSlash('(IntermediateOutputPath)’)) was evaluated as (‘x64/Debug/’ != ‘’ and !HasTrailingSlash(‘x64/Debug/’)).
1>Done building target “_CheckForInvalidConfigurationAndPlatform” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “_PrepareForBuild” in file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.BuildSteps.Targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “Build” depends on it):
1>Task “CreateItem” skipped, due to false condition; (’%(CustomBuild.IncludeFileToTool)’!=’’) was evaluated as (’’!=’’).
1>Done building target “_PrepareForBuild” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “_PrepareForReferenceResolution” in file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveReferences” depends on it):
1>Task “Message” skipped, due to false condition; (’(_REFERENCE_DEBUG)'=='true') was evaluated as (''=='true'). 1>Done building target "_PrepareForReferenceResolution" in project "bandwidthTest_vs2013.vcxproj". 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" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "ResolveReferences" depends on it): 1>Done building target "BeforeResolveReferences" in project "bandwidthTest_vs2013.vcxproj". 1>Target "AssignProjectConfiguration" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "ResolveReferences" depends on it): 1>Using "AssignProjectConfiguration" task from assembly "Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1>Task "AssignProjectConfiguration" 1>Done executing task "AssignProjectConfiguration". 1>Done building target "AssignProjectConfiguration" in project "bandwidthTest_vs2013.vcxproj". 1>Target "AssignProjectConfiguration" skipped. Previously built successfully. 1>Target "_SplitProjectReferencesByFileExistence" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "ResolveProjectReferences" depends on it): 1>Task "ResolveNonMSBuildProjectOutput" skipped, due to false condition; ('(BuildingInsideVisualStudio)’==‘true’ and ‘@(ProjectReferenceWithConfiguration)’!=’’) was evaluated as (‘true’==‘true’ and ‘’!=’’).
1>Done building target “_SplitProjectReferencesByFileExistence” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “_RemoveNameMetadataFromProjectReferenceItems” skipped, due to false condition; (’@(ProjectReference)’!=’’) was evaluated as (’’!=’’).
1>Target “ResolveProjectReferences” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveReferences” depends on it):
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 '12.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 ‘12.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>Done building target "ResolveProjectReferences" in project "bandwidthTest_vs2013.vcxproj". 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” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.NetFramework.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveAssemblyReferences” depends on it):
1>Done building target “GetFrameworkPaths” in project “bandwidthTest_vs2013.vcxproj”.
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” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveAssemblyReferences” depends on it):
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>Done building target "GetReferenceAssemblyPaths" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetBuildDefaultEnvironmentVariables" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "PrepareForBuild" depends on it): 1>Using "SetEnv" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Build.CppTasks.Common.dll". 1>Task "SetEnv" 1> PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\bin;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\tools;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\ide;C:\Program Files (x86)\HTML Help Workshop;;C:\Program Files (x86)\MSBuild\12.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:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\include;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\lib\x64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\MATLAB\R2017a\runtime\win64;C:\Program Files\MATLAB\R2017a\bin;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\;C:\Program Files\Microsoft SQL Server\110\Tools\Binn\;D:\vsprojects\ITKbuild\bin\Release;D:\vsprojects\ITKbuild\bin\Debug;D:\vsprojects\VTKbuild\bin\Debug;D:\vsprojects\VTKbuild\bin\Release;C:\Windows\System32;D:\Qt\5.6\msvc2013_64\bin;D:\Qt\5.6\msvc2013_64\include;D:\Qt\5.6\msvc2013_64\lib;C:\Program Files\CMake\bin;D:\\MiKTeX 2.9\miktex\bin\x64\;C:\Program Files\OpenNI2\Include\;C:\Program Files\OpenNI2\Lib\;C:\Program Files\OpenNI2\Redist\;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\ipp\lib\intel64_win;C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2018.0.124\windows\ipp\include;D:\opencv\build\include;D:\opencv\build\x64\vc14\bin;D:\opencv\build\x64\vc14\lib;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\cnur\AppData\Local\Microsoft\WindowsApps;; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> LIB=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\amd64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\amd64; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;; 1>Done executing task "SetEnv". 1>Done building target "SetBuildDefaultEnvironmentVariables" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != ''). 1>Target "GetResolvedWinMD" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "PrepareForBuild" depends on it): 1>Done building target "GetResolvedWinMD" in project "bandwidthTest_vs2013.vcxproj". 1>Target "PlatformPrepareForBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.Platform.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "PrepareForBuild" depends on it): 1>Task "VCMessage" skipped, due to false condition; ('(_Error64bitToolsNotInstalled)’ == ‘true’) was evaluated as (’’ == ‘true’).
1>Task “VCMessage” skipped, due to false condition; (’(ConfigurationPlatformExists)' != 'true') was evaluated as ('true' != 'true'). 1>Task "VCMessage" skipped, due to false condition; ('(ToolsetTargetsFound)’ != ‘true’) was evaluated as (‘true’ != ‘true’).
1>Done building target “PlatformPrepareForBuild” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “GetFrameworkPaths” skipped. Previously built successfully.
1>Target “GetReferenceAssemblyPaths” skipped. Previously built successfully.
1>Target “SetCABuildNativeEnvironmentVariables” in file “C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\CodeAnalysis\Microsoft.CodeAnalysis.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “PrepareForBuild” depends on it):
1>Initializing task factory “CodeTaskFactory” from assembly “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Build.Tasks.v12.0.dll”.
1>Using “SetEnvironmentVariable” task from the task factory “Code Task Factory”.
1>Task “SetEnvironmentVariable”
1>Done executing task “SetEnvironmentVariable”.
1>Done building target “SetCABuildNativeEnvironmentVariables” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “PrepareForBuild” in file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveAssemblyReferences” depends on it):
1>Task “VCMessage” skipped, due to false condition; (’(DesignTimeBuild)' != 'true' and '(ConfigurationPlatformExists)’ != ‘true’) was evaluated as (’’ != ‘true’ and ‘true’ != ‘true’).
1>Using “MakeDir” task from assembly “Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
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 ‘(VCInstallDir)'=='' 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 Studio 12.0\VC\'=='' 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 ‘(VCInstallDir)'=='' and '(UseEnv)’ != ‘true’ and ‘(PlatformToolset)'=='v90') was evaluated as (''!='true' and 'C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\'=='' and '' != 'true' and 'v120'=='v90'). 1>Task "VCMessage" skipped, due to false condition; ('(VCInstallDir)’==’’ and ‘(UseEnv)' != 'true') was evaluated as ('C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\'=='' and '' != 'true'). 1>Task "VCMessage" skipped, due to false condition; ('(WindowsSDKDir)’==’’ and ‘(UseEnv)' != 'true') was evaluated as ('C:\Program Files (x86)\Windows Kits\8.1\'=='' and '' != 'true'). 1>Task "VCMessage" skipped, due to false condition; ('(IntDirTrailingSlashWarning)’==‘true’) was evaluated as (’’==‘true’).
1>Task “VCMessage” skipped, due to false condition; (’(OutDirTrailingSlashWarning)'=='true') was evaluated as (''=='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; (’(_MBCS_Using)' == 'true' and '(_MBCS_Installed)’ != ‘true’ and ‘(DesignTimeBuild)' != 'true') was evaluated as ('' == 'true' and '' != 'true' 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; ('(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 (‘False’ == ‘true’ or ‘False’ == ‘true’ or ‘False’ == ‘true’ or ‘False’ == ‘true’)).
1>Task “MakeDir”
1>Done executing task “MakeDir”.
1>Done building target “PrepareForBuild” in project “bandwidthTest_vs2013.vcxproj”.
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” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveSDKReferences” depends on it):
1>Task “GetInstalledSDKLocations” skipped, due to false condition; (’@(SDKReference)’ != ‘’) was evaluated as (’’ != ‘’).
1>Done building target “GetInstalledSDKLocations” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “ResolveSDKReferences” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveAssemblyReferences” depends on it):
1>Task “ResolveSDKReference” skipped, due to false condition; (’@(SDKReference)’!=’’) was evaluated as (’’!=’’).
1>Done building target “ResolveSDKReferences” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “ResolveSDKReferences” skipped. Previously built successfully.
1>Target “ExpandSDKReferences” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “ResolveAssemblyReferences” depends on it):
1>Task “GetSDKReferenceFiles” skipped, due to false condition; (’@(ResolvedSDKReference)’!=’’) was evaluated as (’’!=’’).
1>Done building target “ExpandSDKReferences” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “FakesGenerateBeforeBuild” skipped, due to false condition; (@(Fakes) != ‘’ AND (BuildingProject)) was evaluated as ( != '' AND true). 1>Target "ResolveAssemblyReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "ResolveReferences" depends on it): 1>Task "ResolveAssemblyReference" skipped, due to false condition; ('@(Reference)'!='' or '@(_ResolvedProjectReferencePaths)'!='' or '@(_ExplicitReference)' != '') was evaluated as (''!='' or ''!='' or '' != ''). 1>Done building target "ResolveAssemblyReferences" in project "bandwidthTest_vs2013.vcxproj". 1>Target "GenerateBindingRedirects" skipped, due to false condition; ('(AutoGenerateBindingRedirects)’ == ‘true’ and ‘(GenerateBindingRedirectsOutputType)' == 'true') was evaluated as ('' == 'true' and 'true' == 'true'). 1>Target "ResolveComReferences" skipped, due to false condition; ('@(COMReference)'!='' or '@(COMFileReference)'!='') was evaluated as (''!='' or ''!=''). 1>Target "AfterResolveReferences" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "ResolveReferences" depends on it): 1>Done building target "AfterResolveReferences" in project "bandwidthTest_vs2013.vcxproj". 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” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “Build” depends on it):
1>Done building target “ResolveReferences” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “PrepareForBuild” skipped. Previously built successfully.
1>Target “PrepareForBuild” skipped. Previously built successfully.
1>Target “InitializeBuildStatus” in file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “Build” depends on it):
1>Using “ReadLinesFromFile” task from assembly “Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1>Task “ReadLinesFromFile”
1>Done executing task “ReadLinesFromFile”.
1>Using “WriteLinesToFile” task from assembly “Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1>Task “WriteLinesToFile”
1>Done executing task “WriteLinesToFile”.
1>Using “Touch” task from assembly “Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a”.
1>Task “Touch”
1> Touching “x64/Debug/bandwidthTest.tlog\unsuccessfulbuild”.
1>Done executing task “Touch”.
1>Done building target “InitializeBuildStatus” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “AssignProjectConfiguration” skipped. Previously built successfully.
1>Target “_SplitProjectReferencesByFileExistence” skipped. Previously built successfully.
1>Target “BuildGenerateSourcesTraverse” in file “C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “BuildGenerateSources” depends on it):
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>Done building target "BuildGenerateSourcesTraverse" in project "bandwidthTest_vs2013.vcxproj". 1>Target "PrepareForBuild" skipped. Previously built successfully. 1>Target "ResolveReferences" skipped. Previously built successfully. 1>Target "BeforeBuildGenerateSources" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.BuildSteps.Targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "_BuildGenerateSourcesAction" depends on it): 1>Done building target "BeforeBuildGenerateSources" in project "bandwidthTest_vs2013.vcxproj". 1>Target "PreBuildEvent" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppCommon.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "_BuildGenerateSourcesAction" depends on it): 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>Done building target "PreBuildEvent" in project "bandwidthTest_vs2013.vcxproj". 1>Target "CustomBuild" skipped, due to false condition; ('@(CustomBuild)' != '') 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)' != '') was evaluated as ('' != ''). 1>Target "_SelectedFiles" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Done building target "_SelectedFiles" in project "bandwidthTest_vs2013.vcxproj". 1>Target "CudaFilterSelectedFiles" skipped, due to false condition; ('@(SelectedFiles)' != '') was evaluated as ('' != ''). 1>Target "InitializeCudaHostProperties" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "AddCudaCompileMetadata" depends on it): 1>Done building target "InitializeCudaHostProperties" in project "bandwidthTest_vs2013.vcxproj". 1>Target "AddCudaCompileMetadata" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Building target "AddCudaCompileMetadata" completely. 1>No input files were specified. 1>Using "SanitizePaths" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\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)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll". 1>Task "SplitToItemMetadata" 1>Done executing task "SplitToItemMetadata". 1>Done building target "AddCudaCompileMetadata" in project "bandwidthTest_vs2013.vcxproj". 1>Target "AddCudaCompileMetadata" skipped. Previously built successfully. 1>Target "InitializeCudaHostProperties" skipped. Previously built successfully. 1>Target "AddCudaCompileMetadata" skipped. Previously built successfully. 1>Target "InitializeCudaProjectProperties" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "AddCudaLinkMetadata" depends on it): 1>Task "SplitToItemMetadata" 1>Done executing task "SplitToItemMetadata". 1>Done building target "InitializeCudaProjectProperties" in project "bandwidthTest_vs2013.vcxproj". 1>Target "AddCudaLinkMetadata" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Building target "AddCudaLinkMetadata" completely. 1>No input files were specified. 1>Using "ResolvePaths" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\Nvda.Build.CudaTasks.v9.0.dll". 1>Task "ResolvePaths" 1>Done executing task "ResolvePaths". 1>Done building target "AddCudaLinkMetadata" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully. 1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != ''). 1>Target "PrepareForBuild" skipped. Previously built successfully. 1>Target "AddCudaCompileMetadata" skipped. Previously built successfully. 1>Target "AddCudaCompileDeps" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Skipping target "AddCudaCompileDeps" because all output files are up-to-date with respect to the input files. 1>Input files: bandwidthTest.cu;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;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\crtdefs.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\sal.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\ConcurrencySal.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\vadefs.h;...C:\Program Files %28x86%29\Windows Kits\8.1\Include\um\ime_cmodes.h;C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\/include\cuda.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\memory;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\stdint.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\cassert 1>Output files: x64/Debug/bandwidthTest.cu-2006338653.deps 1>Done building target "AddCudaCompileDeps" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetBuildDefaultEnvironmentVariables" skipped. Previously built successfully. 1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != ''). 1>Target "PrepareForBuild" skipped. Previously built successfully. 1>Target "AddCudaCompileMetadata" skipped. Previously built successfully. 1>Target "AddCudaCompilePropsDeps" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Skipping target "AddCudaCompilePropsDeps" because all output files are up-to-date with respect to the input files. 1>Input files: bandwidthTest_vs2013.vcxproj 1>Output files: x64/Debug/bandwidthTest.cu.cache 1>Done building target "AddCudaCompilePropsDeps" in project "bandwidthTest_vs2013.vcxproj". 1>Target "ValidateCudaBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 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>Done building target “ValidateCudaBuild” in project “bandwidthTest_vs2013.vcxproj”.
1>Target “ValidateCudaCodeGeneration” in file “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets” from project “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj” (target “CudaBuild” depends on it):
1>Building target “ValidateCudaCodeGeneration” completely.
1>No input files were specified.
1>Using “CountItems” task from assembly “C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\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>Done building target "ValidateCudaCodeGeneration" in project "bandwidthTest_vs2013.vcxproj". 1>Target "ComputeCudaCompileOutput" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Building target "ComputeCudaCompileOutput" completely. 1>No input files were specified. 1>Done building target "ComputeCudaCompileOutput" in project "bandwidthTest_vs2013.vcxproj". 1>Target "PrepareForCudaBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuild" depends on it): 1>Task "SanitizePaths" 1>Done executing task "SanitizePaths". 1>Using "CudaSetEnvironmentVariable" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\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 Kits\8.1"' 1>Done executing task "CudaSetEnvironmentVariable". 1>Done building target "PrepareForCudaBuild" in project "bandwidthTest_vs2013.vcxproj". 1>Target "CudaBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "_BuildGenerateSourcesAction" depends on it): 1>Using "MSBuild" task from assembly "Microsoft.Build.Tasks.v12.0, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a". 1>Task "MSBuild" 1> Overriding Global Properties for project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" with: 1> Platform=x64 1> Configuration=Debug 1> __CompileIn=C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu 1> __CompileRelativeDir= 1> __CompileFilename=bandwidthTest 1> __CompileOut=x64/Debug/bandwidthTest.cu.obj 1> __ProjectDeps= 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;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\crtdefs.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\sal.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\ConcurrencySal.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\vadefs.h;c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\builtin_types.h;c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\device_types.h;c:\program files\nvidia gpu computing toolkit\cuda\v9.0\include\host_defines.h;...C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\cassert;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\assert.h;C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\include\crtdefs.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 2013 -ccbin "C:\Program Files %28x86%29\Microsoft Visual Studio 12.0\VC\bin\x86_amd64" -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:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu" 1>Building with tools version "12.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="12.0". For more information, please see http://go.microsoft.com/fwlink/?LinkId=293424. 1>Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (entry point): 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>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\' != '' and !HasTrailingSlash('obj\')). 1>Task "Error" skipped, due to false condition; ('(IntermediateOutputPath)’ != ‘’ and !HasTrailingSlash(’(IntermediateOutputPath)')) was evaluated as ('x64/Debug/' != '' and !HasTrailingSlash('x64/Debug/')). 1>Done building target "_CheckForInvalidConfigurationAndPlatform" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetBuildDefaultEnvironmentVariables" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Cpp.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuildCore" depends on it): 1>Using "SetEnv" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.Build.CppTasks.Common.dll". 1>Task "SetEnv" 1> PATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;;...C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Users\cnur\AppData\Local\Microsoft\WindowsApps;; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> LIB=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\amd64;C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64;; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> LIBPATH=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\lib\amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\amd64; 1>Done executing task "SetEnv". 1>Task "SetEnv" 1> INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\include;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\atlmfc\include;C:\Program Files (x86)\Windows Kits\8.1\Include\um;C:\Program Files (x86)\Windows Kits\8.1\Include\shared;C:\Program Files (x86)\Windows Kits\8.1\Include\winrt;; 1>Done executing task "SetEnv". 1>Done building target "SetBuildDefaultEnvironmentVariables" in project "bandwidthTest_vs2013.vcxproj". 1>Target "SetUserMacroEnvironmentVariables" skipped, due to false condition; ('@(BuildMacro)' != '') was evaluated as ('' != ''). 1>Target "PrepareForCudaBuild" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (target "CudaBuildCore" depends on it): 1>Using "SanitizePaths" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\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)\MSBuild\Microsoft.Cpp\v4.0\V120\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 Kits\8.1"' 1>Done executing task "CudaSetEnvironmentVariable". 1>Done building target "PrepareForCudaBuild" in project "bandwidthTest_vs2013.vcxproj". 1>Target "CudaBuildCore" in file "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets" from project "C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest_vs2013.vcxproj" (entry point): 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:\cudaSamples\v9.0\1_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\cnur\AppData\Local\Temp\tmpefa43e6bec564680948b6e2a687dc105.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 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64” -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 -D"WIN32" -D"WIN32" -D_MBCS -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu”
1>
1> C:\cudaSamples\v9.0\1_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 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64” -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 -D"WIN32" -D"WIN32" -D_MBCS -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu”
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\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 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64” -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 -D"WIN32" -D"WIN32" -D_MBCS -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu”” exited with code 255.
1>Done executing task “CudaCompile” – FAILED.
1>Done building target “CudaBuildCore” in project “bandwidthTest_vs2013.vcxproj” – FAILED.
1>Done executing task “MSBuild” – FAILED.
1>Done building target “CudaBuild” in project “bandwidthTest_vs2013.vcxproj” – FAILED.
1>
1>Build FAILED.
1>
1>Time Elapsed 00:00:00.45
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
The reported error is:
Error 45 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 2013 -ccbin “C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\x86_amd64” -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 -D"WIN32" -D"WIN32" -D_MBCS -D_MBCS -Xcompiler “/EHsc /W3 /nologo /Od /FS /Zi /RTC1 /MTd " -o x64/Debug/bandwidthTest.cu.obj “C:\cudaSamples\v9.0\1_Utilities\bandwidthTest\bandwidthTest.cu”” exited with code 255. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations\CUDA 9.0.targets 707 9 bandwidthTest

[b]I am sorry for the long post but i thought sharing the output can give a clue about the problem. So what may be the reason of this build error? I saw many other people complaining due to similar problems. Some solved it with a simple restart of the system but in my case it didnot work.

I would appreciate if someone can help. Thank you in advance[/b]

I have the same GPU and the same error but in Linux Ubuntu 20.

I dont know how to solve it.