Browse Source

FindCUDA: Fix PTX selection with multiple architectures

Bjoern Thiel 8 years ago
parent
commit
934eb497f2
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Modules/FindCUDA/select_compute_arch.cmake

+ 1 - 0
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$")