summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/ResolveDeviceSymbols
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-03-27 18:52:39 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-04-15 14:55:41 (GMT)
commitf0931b07905a960c7dfbcc90e772219150c24951 (patch)
treedefe47dc5d287e9db57bf33905b927547ec770bd /Tests/CudaOnly/ResolveDeviceSymbols
parente98588aabad578a9b33aae05e77f6ec5b3ff2e46 (diff)
downloadCMake-f0931b07905a960c7dfbcc90e772219150c24951.zip
CMake-f0931b07905a960c7dfbcc90e772219150c24951.tar.gz
CMake-f0931b07905a960c7dfbcc90e772219150c24951.tar.bz2
CUDA: Convert tests to use CUDA_ARCHITECTURES
Diffstat (limited to 'Tests/CudaOnly/ResolveDeviceSymbols')
-rw-r--r--Tests/CudaOnly/ResolveDeviceSymbols/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CudaOnly/ResolveDeviceSymbols/CMakeLists.txt b/Tests/CudaOnly/ResolveDeviceSymbols/CMakeLists.txt
index 57aa0b9..bd94ec8 100644
--- a/Tests/CudaOnly/ResolveDeviceSymbols/CMakeLists.txt
+++ b/Tests/CudaOnly/ResolveDeviceSymbols/CMakeLists.txt
@@ -21,7 +21,7 @@ endif()
# confirming that the first static library is on the device link line
# 3. Verify that we can't use those device symbols from anything that links
# to the static library
-string(APPEND CMAKE_CUDA_FLAGS " -gencode arch=compute_30,code=[sm_30] -gencode arch=compute_50,code=\\\"compute_50\\\"")
+set(CMAKE_CUDA_ARCHITECTURES 30 50)
add_library(CUDAResolveDeviceDepsA STATIC file1.cu)
add_library(CUDAResolveDeviceDepsB STATIC file2.cu)