-
Notifications
You must be signed in to change notification settings - Fork 461
/
Copy pathnvcuda.xml
459 lines (459 loc) · 15.2 KB
/
nvcuda.xml
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<?xml version="1.0" encoding="utf-8"?>
<ProjectSchemaDefinitions xmlns="clr-namespace:Microsoft.Build.Framework.XamlTypes;assembly=Microsoft.Build.Framework" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sys="clr-namespace:System;assembly=mscorlib" xmlns:transformCallback="Microsoft.Cpp.Dev10.ConvertPropertyCallback">
<Rule
Name="CUDA_Build_Rule"
PageTemplate="tool"
DisplayName="CUDA Build Rule v3.0.14"
Order="200">
<Rule.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="CUDA_Build_Rule" />
</Rule.DataSource>
<Rule.Categories>
<Category
Name="General">
<Category.DisplayName>
<sys:String>General</sys:String>
</Category.DisplayName>
</Category>
<Category
Name="Command Line"
Subtype="CommandLine">
<Category.DisplayName>
<sys:String>Command Line</sys:String>
</Category.DisplayName>
</Category>
</Rule.Categories>
<StringListProperty
Name="Inputs"
Category="Command Line"
IsRequired="true"
Switch=" ">
<StringListProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType="CUDA_Build_Rule"
SourceType="Item" />
</StringListProperty.DataSource>
</StringListProperty>
<BoolProperty
Name="Debug"
HelpContext="0"
DisplayName="Generate Debug Information"
Description="Specifies whether debugging with Nexus support is generated by the CUDA compiler. (-D_DEBUG -D_WIN32)"
Switch="-D_DEBUG -D_WIN32" />
<BoolProperty
Name="Emulation"
HelpContext="0"
DisplayName="Emulation Mode"
Description="Whether or not to generate emulated code."
Switch="-deviceemu -D_DEVICEEMU" />
<BoolProperty
Name="FastMath"
Subcategory="Default"
HelpContext="0"
DisplayName="Use Fast Math"
Description="Make use of the fast math library."
Switch="-use_fast_math" />
<BoolProperty
Name="PtxAsOptionV"
HelpContext="0"
DisplayName="Verbose PTXAS Output"
Switch="--ptxas-options=-v" />
<BoolProperty
Name="CInterleavedPTX"
HelpContext="0"
DisplayName="Interleave C in PTXAS Output"
Switch="--opencc-options -LIST:source=on" />
<BoolProperty
Name="Keep"
Category="Preprocessor"
HelpContext="0"
DisplayName="Keep preprocessed files (.ptx, .cubin, cudafe1.c, cudafe1.cpp, cudafe1.gpu, etc.)"
Description="Specifies that preprocessor files generated by the CUDA compiler are not deleted."
Switch="--keep" />
<BoolProperty
Name="TypeInfo"
Category="Hybrid CUDA/C++ Options"
HelpContext="0"
DisplayName="Enable Run-Time Type Info"
Description="Adds code for checking C++ object types at run time (runtime type information). (/GR)"
Switch="/GR" />
<StringListProperty
Name="Include"
HelpContext="0"
DisplayName="Additional Include Directories"
Description="Specifies one or more directories to add to the include path; use semi-colon delimited list if more than one. (/I[path])"
Separator=";"
Switch="-I"[value]"" />
<StringProperty
Name="OutputFile"
HelpContext="0"
DisplayName="Compiler Output Filename"
Switch="[value]" />
<StringProperty
Name="OverrideCompileOutName"
HelpContext="0"
DisplayName="Alternate Compiler Output File (non-standard installation)"
Switch="[value]" />
<StringProperty
Name="AlternateNvccPath"
HelpContext="0"
DisplayName="Alternate path to NVCC.exe (non-standard installation)"
Switch="[value]\nvcc.exe" />
<StringProperty
Name="ExtraNvccOptions"
HelpContext="0"
DisplayName="Extra Options"
Description="Supply any additional command line options to NVCC"
Switch="[value]" />
<StringListProperty
Name="Defines"
Category="Preprocessor"
HelpContext="0"
DisplayName="Preprocessor Definitions"
Description="Specifies one or more preprocessor defines. (-D[macro])"
Separator=";"
Switch="-D[value]" />
<StringProperty
Name="AddedDependencies"
HelpContext="0"
DisplayName="Source Dependencies"
Description="Add additional CUDA file dependencies"
Switch="[value]" />
<StringProperty
Name="ExtraCppOptions"
Category="Hybrid CUDA/C++ Options"
HelpContext="0"
DisplayName="Extra C++ Options"
Description="Supply any additional command line options to the host C++ compiler"
Switch="[value]" />
<EnumProperty
Name="NvccCompilation"
HelpContext="0"
DisplayName="NVCC Compilation Type"
Description="Select desired output of NVCC compilation (-c/-compile, -cuda, -gpu, -cubin, -ptx)">
<EnumValue
Name="0"
DisplayName="Generate hybrid object file (--compile / -c)"
Switch="--compile -o "$(IntDir)\$(InputName).cu.obj"" />
<EnumValue
Name="1"
DisplayName="Generate hybrid .c file (-cuda)"
Switch="-cuda -o "$(IntDir)\$(InputName).cu.c"" />
<EnumValue
Name="2"
DisplayName="Generate .gpu file (-gpu)"
Switch="-gpu -o "$(IntDir)\$(InputName).gpu"" />
<EnumValue
Name="3"
DisplayName="Generate .cubin file (-cubin)"
Switch="-cubin -o "data\$(InputName).cubin"" />
<EnumValue
Name="4"
DisplayName="Generate .ptx file (-ptx)"
Switch="-ptx -o "data\$(InputName).ptx"" />
<EnumValue
Name="5"
DisplayName="Custom CUBIN Filename"
Switch="-cubin -o "[OutputFile].cubin"" />
<EnumValue
Name="6"
DisplayName="Custom PTX Filename"
Switch="-ptx -o "[OutputFile].ptx"" />
</EnumProperty>
<EnumProperty
Name="compileout"
HelpContext="0"
DisplayName="Compiler Output (obj/cubin/ptx)"
Description="Sets output as an OBJ, CUBIN, or PTX file">
<EnumValue
Name="0"
DisplayName=""$(IntDir)/$(InputName).cu.obj""
Switch=""$(IntDir)/$(InputName).cu.obj"" />
<EnumValue
Name="1"
DisplayName=""data/$(InputName).cubin""
Switch=""data/$(InputName).cubin"" />
<EnumValue
Name="2"
DisplayName=""data/$(InputName).ptx""
Switch=""data/$(InputName).ptx"" />
</EnumProperty>
<EnumProperty
Name="Arch1"
HelpContext="0"
DisplayName="GPU Architecture (1)"
Description="Select GPU architecture (1) to use on the command line (-arch sm_52, sm_53, sm_60)">
<EnumValue
Name="0"
DisplayName="0"
Switch="" />
<EnumValue
Name="52"
DisplayName="sm_52"
Switch="-gencode=arch=compute_52,code=\"sm_52,compute_52\"" />
<EnumValue
Name="53"
DisplayName="sm_53"
Switch="-gencode=arch=compute_53,code=\"sm_53,compute_53\"" />
<EnumValue
Name="60"
DisplayName="sm_60"
Switch="-gencode=arch=compute_60,code=\"sm_60,compute_60\"" />
</EnumProperty>
<EnumProperty
Name="Arch2"
HelpContext="0"
DisplayName="GPU Architecture (2)"
Description="Select GPU architecture (2) to use on the command line (-arch sm_52, sm_53, sm_60)">
<EnumValue
Name="0"
DisplayName="0"
Switch="" />
<EnumValue
Name="52"
DisplayName="sm_52"
Switch="-gencode=arch=compute_52,code=\"sm_52,compute_52\"" />
<EnumValue
Name="53"
DisplayName="sm_53"
Switch="-gencode=arch=compute_53,code=\"sm_53,compute_53\"" />
<EnumValue
Name="60"
DisplayName="sm_60"
Switch="-gencode=arch=compute_60,code=\"sm_60,compute_60\"" />
</EnumProperty>
<EnumProperty
Name="Arch3"
HelpContext="0"
DisplayName="GPU Architecture (3)"
Description="Select GPU architecture (3) to use on the command line (-arch sm_52, sm_53, sm_60)">
<EnumValue
Name="0"
DisplayName="0"
Switch="" />
<EnumValue
Name="52"
DisplayName="sm_52"
Switch="-gencode=arch=compute_52,code=\"sm_52,compute_52\"" />
<EnumValue
Name="53"
DisplayName="sm_53"
Switch="-gencode=arch=compute_53,code=\"sm_53,compute_53\"" />
<EnumValue
Name="60"
DisplayName="sm_60"
Switch="-gencode=arch=compute_60,code=\"sm_60,compute_60\"" />
</EnumProperty>
<EnumProperty
Name="CompilerPath"
HelpContext="0"
DisplayName="Path to nvcc.exe"
Description="Specifies the path to the CUDA compiler, nvcc.exe ">
<EnumValue
Name="0"
DisplayName="Installed Toolkit (uses CUDA_BIN_PATH environment varible)"
Switch=""$(CUDA_BIN_PATH)\nvcc.exe"" />
<EnumValue
Name="1"
DisplayName="Use Alternate path to CUDA, specified below"
Switch=""[AlternateNvccPath]"" />
</EnumProperty>
<EnumProperty
Name="Warning"
Category="Hybrid CUDA/C++ Options"
HelpContext="0"
DisplayName="Warning Level"
Description="Select how strict you want the compiler to be about checking for potentially suspect constructs. (/W0 - /W4)">
<EnumValue
Name="0"
DisplayName="Off: Turn Off All Warnings (/W0)"
Switch="/W0" />
<EnumValue
Name="1"
DisplayName="Level 1 (/W1)"
Switch="/W1" />
<EnumValue
Name="2"
DisplayName="Level 2 (/W2)"
Switch="/W2" />
<EnumValue
Name="3"
DisplayName="Level 3 (/W3)"
Switch="/W3" />
<EnumValue
Name="4"
DisplayName="Level 4 (/W4)"
Switch="/W4" />
</EnumProperty>
<EnumProperty
Name="Optimization"
HelpContext="0"
DisplayName="Optimization"
Description="Select option for code optimization; choose Custom to use specific optimization options. (/Od, /O1, /O2, /Ox)">
<EnumValue
Name="0"
DisplayName="Disabled (/Od)"
Switch="/Od" />
<EnumValue
Name="1"
DisplayName="Minimize Size (/O1)"
Switch="/O1" />
<EnumValue
Name="2"
DisplayName="Maximize Speed (/O2)"
Switch="/O2" />
<EnumValue
Name="3"
DisplayName="Full Optimization (/Ox)"
Switch="/Ox" />
</EnumProperty>
<EnumProperty
Name="RuntimeChecks"
Category="Hybrid CUDA/C++ Options"
HelpContext="0"
DisplayName="Basic Runtime Checks"
Description="Perform basic runtime error checks, incompatible with any optimization type other than debug. (/RTCs, /RTCu, /RTC1)">
<EnumValue
Name="0"
DisplayName="Default"
Switch=" " />
<EnumValue
Name="1"
DisplayName="Stack Frames (/RTCs)"
Switch="/RTCs" />
<EnumValue
Name="2"
DisplayName="Uninitialized Variables (/RTCu)"
Switch="/RTCu" />
<EnumValue
Name="3"
DisplayName="Both (/RTC1, equiv. to /RTCsu)"
Switch="/RTC1" />
</EnumProperty>
<EnumProperty
Name="Runtime"
Category="Hybrid CUDA/C++ Options"
HelpContext="0"
DisplayName="Runtime Library"
Description="Specify runtime library for linking. (/MT, /MTd, /MD, /MDd, /ML, /MLd)">
<EnumValue
Name="0"
DisplayName="Multi-Threaded (/MT)"
Switch="/MT" />
<EnumValue
Name="1"
DisplayName="Multi-Threaded Debug (/MTd)"
Switch="/MTd" />
<EnumValue
Name="2"
DisplayName="Multi-Threaded DLL (/MD)"
Switch="/MD" />
<EnumValue
Name="3"
DisplayName="Multi-Threaded Debug DLL (/MDd)"
Switch="/MDd" />
<EnumValue
Name="4"
DisplayName="Single-Threaded (/ML)"
Switch="/ML" />
<EnumValue
Name="5"
DisplayName="Single-Threaded Debug (/MLd)"
Switch="/MLd" />
</EnumProperty>
<IntProperty
Name="MaxRegCount"
HelpContext="0"
DisplayName="maxrregcount"
Switch="-maxrregcount=[value]" />
<StringProperty
Name="CommandLineTemplate"
DisplayName="Command Line"
Visible="False"
IncludeInCommandLine="False" />
<DynamicEnumProperty
Name="CUDA_Build_RuleBeforeTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute Before</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run before.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^CUDA_Build_RuleBeforeTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<DynamicEnumProperty
Name="CUDA_Build_RuleAfterTargets"
Category="General"
EnumProvider="Targets"
IncludeInCommandLine="False">
<DynamicEnumProperty.DisplayName>
<sys:String>Execute After</sys:String>
</DynamicEnumProperty.DisplayName>
<DynamicEnumProperty.Description>
<sys:String>Specifies the targets for the build customization to run after.</sys:String>
</DynamicEnumProperty.Description>
<DynamicEnumProperty.ProviderSettings>
<NameValuePair
Name="Exclude"
Value="^CUDA_Build_RuleAfterTargets|^Compute" />
</DynamicEnumProperty.ProviderSettings>
<DynamicEnumProperty.DataSource>
<DataSource
Persistence="ProjectFile"
ItemType=""
HasConfigurationCondition="true" />
</DynamicEnumProperty.DataSource>
</DynamicEnumProperty>
<StringListProperty
Name="Outputs"
DisplayName="Outputs"
Visible="False"
IncludeInCommandLine="False" />
<StringProperty
Name="ExecutionDescription"
DisplayName="Execution Description"
Visible="False"
IncludeInCommandLine="False" />
<StringListProperty
Name="AdditionalDependencies"
DisplayName="Additional Dependencies"
IncludeInCommandLine="False"
Visible="false" />
<StringProperty
Subtype="AdditionalOptions"
Name="AdditionalOptions"
Category="Command Line">
<StringProperty.DisplayName>
<sys:String>Additional Options</sys:String>
</StringProperty.DisplayName>
<StringProperty.Description>
<sys:String>Additional Options</sys:String>
</StringProperty.Description>
</StringProperty>
</Rule>
<ItemType
Name="CUDA_Build_Rule"
DisplayName="CUDA Build Rule v3.0.14" />
<FileExtension
Name="*.cu"
ContentType="CUDA_Build_Rule" />
<ContentType
Name="CUDA_Build_Rule"
DisplayName="CUDA Build Rule v3.0.14"
ItemType="CUDA_Build_Rule" />
</ProjectSchemaDefinitions>