-
Notifications
You must be signed in to change notification settings - Fork 461
/
Copy pathnvcuda.targets
107 lines (107 loc) · 4.68 KB
/
nvcuda.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<?xml version="1.0" encoding="utf-8"?>
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<PropertyPageSchema
Include="$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml" />
<AvailableItemName
Include="CUDA_Build_Rule">
<Targets>_CUDA_Build_Rule</Targets>
</AvailableItemName>
</ItemGroup>
<UsingTask
TaskName="CUDA_Build_Rule"
TaskFactory="XamlTaskFactory"
AssemblyName="Microsoft.Build.Tasks.v4.0">
<Task>$(MSBuildThisFileDirectory)$(MSBuildThisFileName).xml</Task>
</UsingTask>
<Target
Name="_CUDA_Build_Rule"
BeforeTargets="$(CUDA_Build_RuleBeforeTargets)"
AfterTargets="$(CUDA_Build_RuleAfterTargets)"
Condition="'@(CUDA_Build_Rule)' != ''"
DependsOnTargets="$(CUDA_Build_RuleDependsOn);ComputeCUDA_Build_RuleOutput"
Outputs="@(CUDA_Build_Rule->Metadata('Outputs')->Distinct())"
Inputs="@(CUDA_Build_Rule);%(CUDA_Build_Rule.AdditionalDependencies);$(MSBuildProjectFile)">
<ItemGroup
Condition="'@(SelectedFiles)' != ''">
<CUDA_Build_Rule
Remove="@(CUDA_Build_Rule)"
Condition="'%(Identity)' != '@(SelectedFiles)'" />
</ItemGroup>
<ItemGroup>
<CUDA_Build_Rule_tlog
Include="%(CUDA_Build_Rule.Outputs)"
Condition="'%(CUDA_Build_Rule.Outputs)' != '' and '%(CUDA_Build_Rule.ExcludedFromBuild)' != 'true'">
<Source>@(CUDA_Build_Rule, '|')</Source>
</CUDA_Build_Rule_tlog>
</ItemGroup>
<Message
Importance="High"
Text="%(CUDA_Build_Rule.ExecutionDescription)" />
<WriteLinesToFile
Condition="'@(CUDA_Build_Rule_tlog)' != '' and '%(CUDA_Build_Rule_tlog.ExcludedFromBuild)' != 'true'"
File="$(IntDir)$(ProjectName).write.1.tlog"
Lines="^%(CUDA_Build_Rule_tlog.Source);@(CUDA_Build_Rule_tlog->'%(Fullpath)')" />
<CUDA_Build_Rule
Condition="'@(CUDA_Build_Rule)' != '' and '%(CUDA_Build_Rule.ExcludedFromBuild)' != 'true'"
CommandLineTemplate="%(CUDA_Build_Rule.CommandLineTemplate)"
Debug="%(CUDA_Build_Rule.Debug)"
Emulation="%(CUDA_Build_Rule.Emulation)"
FastMath="%(CUDA_Build_Rule.FastMath)"
PtxAsOptionV="%(CUDA_Build_Rule.PtxAsOptionV)"
CInterleavedPTX="%(CUDA_Build_Rule.CInterleavedPTX)"
Keep="%(CUDA_Build_Rule.Keep)"
TypeInfo="%(CUDA_Build_Rule.TypeInfo)"
Include="%(CUDA_Build_Rule.Include)"
OutputFile="%(CUDA_Build_Rule.OutputFile)"
OverrideCompileOutName="%(CUDA_Build_Rule.OverrideCompileOutName)"
AlternateNvccPath="%(CUDA_Build_Rule.AlternateNvccPath)"
ExtraNvccOptions="%(CUDA_Build_Rule.ExtraNvccOptions)"
Defines="%(CUDA_Build_Rule.Defines)"
AddedDependencies="%(CUDA_Build_Rule.AddedDependencies)"
ExtraCppOptions="%(CUDA_Build_Rule.ExtraCppOptions)"
MaxRegCount="%(CUDA_Build_Rule.MaxRegCount)"
NvccCompilation="%(CUDA_Build_Rule.NvccCompilation)"
compileout="%(CUDA_Build_Rule.compileout)"
Arch1="%(CUDA_Build_Rule.Arch1)"
Arch2="%(CUDA_Build_Rule.Arch2)"
Arch3="%(CUDA_Build_Rule.Arch3)"
CompilerPath="%(CUDA_Build_Rule.CompilerPath)"
Warning="%(CUDA_Build_Rule.Warning)"
Optimization="%(CUDA_Build_Rule.Optimization)"
RuntimeChecks="%(CUDA_Build_Rule.RuntimeChecks)"
Runtime="%(CUDA_Build_Rule.Runtime)"
AdditionalOptions="%(CUDA_Build_Rule.AdditionalOptions)"
Inputs="@(CUDA_Build_Rule)" />
</Target>
<PropertyGroup>
<ComputeLinkInputsTargets>
$(ComputeLinkInputsTargets);
ComputeCUDA_Build_RuleOutput;
</ComputeLinkInputsTargets>
<ComputeLibInputsTargets>
$(ComputeLibInputsTargets);
ComputeCUDA_Build_RuleOutput;
</ComputeLibInputsTargets>
</PropertyGroup>
<Target
Name="ComputeCUDA_Build_RuleOutput"
Condition="'@(CUDA_Build_Rule)' != ''">
<ItemGroup>
<CUDA_Build_RuleDirsToMake
Condition="'@(CUDA_Build_Rule)' != '' and '%(CUDA_Build_Rule.ExcludedFromBuild)' != 'true'"
Include="%(CUDA_Build_Rule.Outputs)" />
<Link
Include="%(CUDA_Build_RuleDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<Lib
Include="%(CUDA_Build_RuleDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
<ImpLib
Include="%(CUDA_Build_RuleDirsToMake.Identity)"
Condition="'%(Extension)'=='.obj' or '%(Extension)'=='.res' or '%(Extension)'=='.rsc' or '%(Extension)'=='.lib'" />
</ItemGroup>
<MakeDir
Directories="@(CUDA_Build_RuleDirsToMake->'%(RootDir)%(Directory)')" />
</Target>
</Project>