From 73ce99cbfe5712b0f35644baf619ddc0ca754de9 Mon Sep 17 00:00:00 2001 From: Stephan Szabo Date: Wed, 21 Nov 2018 10:04:30 -0800 Subject: 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. --- Templates/MSBuild/FlagTables/v10_Cuda.json | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/Templates/MSBuild/FlagTables/v10_Cuda.json b/Templates/MSBuild/FlagTables/v10_Cuda.json index ab63367..5f6b0da 100644 --- a/Templates/MSBuild/FlagTables/v10_Cuda.json +++ b/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" + ] } ] -- cgit v0.12