diff options
author | Bjoern Thiel <bjoern.thiel@mpibpc.mpg.de> | 2017-02-22 08:11:34 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-02-22 15:35:44 (GMT) |
commit | 934eb497f211b2e48ba070041ba775e1ac55d01d (patch) | |
tree | 508901ab82a389ec2b1c5ba6ce968c0341a3c2d2 /Modules/FindCUDA | |
parent | 6cbad490c2fdbd9bdc67b406b9f2dcdc21e08ddb (diff) | |
download | CMake-934eb497f211b2e48ba070041ba775e1ac55d01d.zip CMake-934eb497f211b2e48ba070041ba775e1ac55d01d.tar.gz CMake-934eb497f211b2e48ba070041ba775e1ac55d01d.tar.bz2 |
FindCUDA: Fix PTX selection with multiple architectures
Diffstat (limited to 'Modules/FindCUDA')
-rw-r--r-- | Modules/FindCUDA/select_compute_arch.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/FindCUDA/select_compute_arch.cmake b/Modules/FindCUDA/select_compute_arch.cmake index a96a8ca..8fb44d8 100644 --- a/Modules/FindCUDA/select_compute_arch.cmake +++ b/Modules/FindCUDA/select_compute_arch.cmake @@ -112,6 +112,7 @@ function(CUDA_SELECT_NVCC_ARCH_FLAGS out_variable) list(REMOVE_DUPLICATES CUDA_ARCH_LIST) foreach(arch_name ${CUDA_ARCH_LIST}) set(arch_bin) + set(arch_ptx) set(add_ptx FALSE) # Check to see if we are compiling PTX if(arch_name MATCHES "(.*)\\+PTX$") |