Skip to content
Snippets Groups Projects
Commit 934eb497 authored by Bjoern Thiel's avatar Bjoern Thiel Committed by Brad King
Browse files

FindCUDA: Fix PTX selection with multiple architectures

parent 6cbad490
No related branches found
No related tags found
No related merge requests found
......@@ -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$")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment