Skip to content

Instantly share code, notes, and snippets.

@robertmaynard
Created November 30, 2017 20:22
Show Gist options
  • Save robertmaynard/1f05c823ad1bb989ebf075e550fbbd48 to your computer and use it in GitHub Desktop.
Save robertmaynard/1f05c823ad1bb989ebf075e550fbbd48 to your computer and use it in GitHub Desktop.
cuda9_nvlink_msvc
>nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:32_Central_Daylight_Time_2017
Cuda compilation tools, release 9.0, V9.0.176
>MSBuild.exe -p:Configuration=Debug -p:VisualStudioVersion=15.0 Example.vcxproj
...
CUDALINK : nvcc error : 'nvlink' died with status 0xC0000409
...
int main()
{
return 0;
}
<?xml version="1.0" encoding="UTF-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{DB933726-F30A-30C4-9CC3-2F8A2E4AEDEA}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<Platform>x64</Platform>
<ProjectName>Example</ProjectName>
<VCProjectUpgraderObjectName>NoUpgrade</VCProjectUpgraderObjectName>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<CharacterSet>MultiByte</CharacterSet>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 9.0.props" />
</ImportGroup>
<ImportGroup Label="PropertySheets">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup>
<_ProjectFileVersion>10.0.20506.1</_ProjectFileVersion>
<OutDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Debug\</OutDir>
<IntDir Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Debug\</IntDir>
<TargetName Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">Example</TargetName>
<TargetExt Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">.exe</TargetExt>
<LinkIncremental Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</LinkIncremental>
<GenerateManifest Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">true</GenerateManifest>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<ClCompile>
<AssemblerListingLocation>Debug/</AssemblerListingLocation>
</ClCompile>
<CudaCompile>
<CodeGeneration>compute_30,compute_30</CodeGeneration>
<GenerateRelocatableDeviceCode>true</GenerateRelocatableDeviceCode>
<TargetMachinePlatform>64</TargetMachinePlatform>
</CudaCompile>
<Link>
<GenerateDebugInformation>true</GenerateDebugInformation>
<ImportLibrary>Debug/Example.lib</ImportLibrary>
<ProgramDataBaseFile>Debug/Example.pdb</ProgramDataBaseFile>
<SubSystem>Console</SubSystem>
</Link>
<CudaLink>
<PerformDeviceLink>true</PerformDeviceLink>
</CudaLink>
</ItemDefinitionGroup>
<ItemGroup>
<CudaCompile Include="Example.cu" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
<Import Project="$(VCTargetsPath)\BuildCustomizations\CUDA 9.0.targets" />
</ImportGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment