Explorar o código

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 %!s(int64=7) %!d(string=hai) anos
pai
achega
73ce99cbfe
Modificáronse 1 ficheiros con 30 adicións e 0 borrados
  1. 30 0
      Templates/MSBuild/FlagTables/v10_Cuda.json

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

@@ -18,5 +18,35 @@
       "UserFollowing",
       "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"
+    ]
   }
 ]