Commit 4e4d2da0 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

fix #3296 : Unsupported gpu architecture 'compute_21'

parent 88419f89
......@@ -110,6 +110,7 @@ if(CUDA_FOUND)
message(STATUS "Automatic detection of CUDA generation failed. Going to build for all known architectures.")
else()
set(__cuda_arch_bin "${_nvcc_out}")
string(REPLACE "2.1" "2.1(2.0)" __cuda_arch_bin "${__cuda_arch_bin}")
endif()
endif()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment