Преглед изворни кода

VS: Select the CUDA runtime library

Original header commit v3.9.0-rc1~431^2~5

Parse the `-cudart=` option and add a corresponding `CudaRuntime`
field to the generated project file.  Also add a matching `.lib`
to the list of libraries linked.
Stephan Szabo пре 7 година
родитељ
комит
73ce99cbfe
1 измењених фајлова са 30 додато и 0 уклоњено
  1. 30 0
      Templates/MSBuild/FlagTables/v10_Cuda.json

+ 30 - 0
Templates/MSBuild/FlagTables/v10_Cuda.json

@@ -18,5 +18,35 @@
       "UserFollowing",
       "UserFollowing",
       "SpaceAppendable"
       "SpaceAppendable"
     ]
     ]
+  },
+  {
+    "name":  "CudaRuntime",
+    "switch": "cudart=none",
+    "comment": "No CUDA runtime library",
+    "value": "None",
+    "flags": []
+  },
+  {
+    "name":  "CudaRuntime",
+    "switch": "cudart=shared",
+    "comment": "Shared/dynamic CUDA runtime library",
+    "value": "Shared",
+    "flags": []
+  },
+  {
+    "name":  "CudaRuntime",
+    "switch": "cudart=static",
+    "comment": "Static CUDA runtime library",
+    "value": "Static",
+    "flags": []
+  },
+  {
+    "name":  "CudaRuntime",
+    "switch": "cudart",
+    "comment": "CUDA runtime library",
+    "value": "",
+    "flags": [
+      "UserFollowing"
+    ]
   }
   }
 ]
 ]