diff options
author | Stephan Szabo <stephan.szabo@sony.com> | 2018-11-21 18:07:35 (GMT) |
---|---|---|
committer | Stephan Szabo <stephan.szabo@sony.com> | 2018-11-28 15:43:27 (GMT) |
commit | c17809bcd7014bf64cd9f95d9e38d5198abc4588 (patch) | |
tree | 94ad17c3e9cabea14c2e4c5712c5579e593c7d3f /Templates/MSBuild | |
parent | 73ce99cbfe5712b0f35644baf619ddc0ca754de9 (diff) | |
download | CMake-c17809bcd7014bf64cd9f95d9e38d5198abc4588.zip CMake-c17809bcd7014bf64cd9f95d9e38d5198abc4588.tar.gz CMake-c17809bcd7014bf64cd9f95d9e38d5198abc4588.tar.bz2 |
VS: Select CUDA code generation architectures
Original header commit v3.9.0-rc1~431^2~4
Parse the `-gencode=`, `-arch`, and `-code` flags and generate a
`CodeGeneration` field in the project file.
Diffstat (limited to 'Templates/MSBuild')
-rw-r--r-- | Templates/MSBuild/FlagTables/v10_Cuda.json | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/Templates/MSBuild/FlagTables/v10_Cuda.json b/Templates/MSBuild/FlagTables/v10_Cuda.json index 5f6b0da..ac853af 100644 --- a/Templates/MSBuild/FlagTables/v10_Cuda.json +++ b/Templates/MSBuild/FlagTables/v10_Cuda.json @@ -48,5 +48,117 @@ "flags": [ "UserFollowing" ] + }, + { + "name": "cmake-temp-gencode", + "switch": "gencode=", + "comment": "", + "value": "", + "flags": [ + "UserValue", + "SemicolonAppendable" + ] + }, + { + "name": "cmake-temp-gencode", + "switch": "gencode", + "comment": "", + "value": "", + "flags": [ + "UserFollowing", + "SemicolonAppendable" + ] + }, + { + "name": "cmake-temp-gencode", + "switch": "-generate-code=", + "comment": "", + "value": "", + "flags": [ + "UserValue", + "SemicolonAppendable" + ] + }, + { + "name": "cmake-temp-gencode", + "switch": "-generate-code", + "comment": "", + "value": "", + "flags": [ + "UserFollowing", + "SemicolonAppendable" + ] + }, + { + "name": "cmake-temp-code", + "switch": "code=", + "comment": "", + "value": "", + "flags": [ + "UserValue" + ] + }, + { + "name": "cmake-temp-code", + "switch": "code", + "comment": "", + "value": "", + "flags": [ + "UserFollowing" + ] + }, + { + "name": "cmake-temp-code", + "switch": "-gpu-code=", + "comment": "", + "value": "", + "flags": [ + "UserValue" + ] + }, + { + "name": "cmake-temp-code", + "switch": "-gpu-code", + "comment": "", + "value": "", + "flags": [ + "UserFollowing" + ] + }, + { + "name": "cmake-temp-arch", + "switch": "arch=", + "comment": "", + "value": "", + "flags": [ + "UserValue" + ] + }, + { + "name": "cmake-temp-arch", + "switch": "arch", + "comment": "", + "value": "", + "flags": [ + "UserFollowing" + ] + }, + { + "name": "cmake-temp-arch", + "switch": "-gpu-architecture=", + "comment": "", + "value": "", + "flags": [ + "UserValue" + ] + }, + { + "name": "cmake-temp-arch", + "switch": "-gpu-architecture", + "comment": "", + "value": "", + "flags": [ + "UserFollowing" + ] } ] |