summaryrefslogtreecommitdiffstats
path: root/Tests/CudaOnly/DontResolveDeviceSymbols
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-09-20 14:11:33 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-09-21 17:37:07 (GMT)
commit4fe9f534f522505f2609bac019ffcb8c6826a7b7 (patch)
treeb9f1a62b557240cce26ff57ce2b1067ebb6833ac /Tests/CudaOnly/DontResolveDeviceSymbols
parent39a5c0c82c2041a622bcdf19fa3f22abc34b9ae8 (diff)
downloadCMake-4fe9f534f522505f2609bac019ffcb8c6826a7b7.zip
CMake-4fe9f534f522505f2609bac019ffcb8c6826a7b7.tar.gz
CMake-4fe9f534f522505f2609bac019ffcb8c6826a7b7.tar.bz2
Tests: Don't unnecessarily set CUDA_ARCHITECTURES
Architecture 30 was removed with CUDA 11, so most of the CUDA tests fail with it. Remove setting the architecture and bump the minimum version to 3.18, so CMP0104 takes effect and we can rely on the default architecture, which is guaranteed to be compilable. Use of __ldg() in ProperLinkFlags was removed as it only affects performance and is available only on sm_35 and above. Testing the functionality of CUDA_ARCHITECTURES is already covered by CudaOnly.Architecture and CudaOnly.CompileFlags.
Diffstat (limited to 'Tests/CudaOnly/DontResolveDeviceSymbols')
-rw-r--r--Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt b/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
index 1265660..c8e8ebc 100644
--- a/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
+++ b/Tests/CudaOnly/DontResolveDeviceSymbols/CMakeLists.txt
@@ -1,5 +1,5 @@
-cmake_minimum_required(VERSION 3.13)
-project (DontResolveDeviceSymbols CUDA)
+cmake_minimum_required(VERSION 3.18)
+project(DontResolveDeviceSymbols CUDA)
# Find nm and dumpbin
if(CMAKE_NM)
@@ -26,7 +26,6 @@ endif()
# Verify that we can't use those device symbols from anything
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CUDA_STANDARD 11)
-set(CMAKE_CUDA_ARCHITECTURES 30 50)
set(CMAKE_CUDA_RESOLVE_DEVICE_SYMBOLS OFF)
add_library(CUDANoDeviceResolve SHARED file1.cu)