diff options
author | Brad King <brad.king@kitware.com> | 2022-03-02 21:46:42 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-03-10 14:26:13 (GMT) |
commit | 45e9ab0372fab8cdd4ef07acc8c5c8cf104ef850 (patch) | |
tree | 2ab636c79a3d329b4ad2ddab153ecaa6d1f60a8a | |
parent | 4a2300923b2b79d08fe46b3d6c58fcf08038cd4e (diff) | |
download | CMake-45e9ab0372fab8cdd4ef07acc8c5c8cf104ef850.zip CMake-45e9ab0372fab8cdd4ef07acc8c5c8cf104ef850.tar.gz CMake-45e9ab0372fab8cdd4ef07acc8c5c8cf104ef850.tar.bz2 |
Tests: Rename CudaOnly.{All => ArchSpecial}
The purpose of the test is to cover special values of
`CMAKE_CUDA_ARCHITECTURES`. Prepare to add more than
just `all` and `all-major`.
While at it, fix the `project()` name in the test to
match what we pass to `ctest` with `--build-project`.
-rw-r--r-- | Tests/CudaOnly/ArchSpecial/CMakeLists.txt (renamed from Tests/CudaOnly/All/CMakeLists.txt) | 6 | ||||
-rw-r--r-- | Tests/CudaOnly/ArchSpecial/main.cu (renamed from Tests/CudaOnly/All/main.cu) | 0 | ||||
-rw-r--r-- | Tests/CudaOnly/CMakeLists.txt | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Tests/CudaOnly/All/CMakeLists.txt b/Tests/CudaOnly/ArchSpecial/CMakeLists.txt index ba32e9a..11f4292 100644 --- a/Tests/CudaOnly/All/CMakeLists.txt +++ b/Tests/CudaOnly/ArchSpecial/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.20) -project(CudaOnlyAll CUDA) +project(ArchSpecial CUDA) if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 8.0) @@ -51,6 +51,6 @@ try_compile(all_major_archs_compiles verify_output(all-major) if(all_archs_compiles AND all_major_archs_compiles) - add_executable(CudaOnlyAll main.cu) - target_compile_options(CudaOnlyAll PRIVATE ${compile_options}) + add_executable(CudaOnlyArchSpecial main.cu) + target_compile_options(CudaOnlyArchSpecial PRIVATE ${compile_options}) endif() diff --git a/Tests/CudaOnly/All/main.cu b/Tests/CudaOnly/ArchSpecial/main.cu index 5047a34..5047a34 100644 --- a/Tests/CudaOnly/All/main.cu +++ b/Tests/CudaOnly/ArchSpecial/main.cu diff --git a/Tests/CudaOnly/CMakeLists.txt b/Tests/CudaOnly/CMakeLists.txt index cacfb76..aa4755d 100644 --- a/Tests/CudaOnly/CMakeLists.txt +++ b/Tests/CudaOnly/CMakeLists.txt @@ -4,8 +4,8 @@ macro (add_cuda_test_macro name) PROPERTY LABELS "CUDA") endmacro () -add_cuda_test_macro(CudaOnly.All CudaOnlyAll) add_cuda_test_macro(CudaOnly.Architecture Architecture) +add_cuda_test_macro(CudaOnly.ArchSpecial CudaOnlyArchSpecial) add_cuda_test_macro(CudaOnly.CompileFlags CudaOnlyCompileFlags) add_cuda_test_macro(CudaOnly.EnableStandard CudaOnlyEnableStandard) |