Skip to content
This repository was archived by the owner on Mar 21, 2024. It is now read-only.

Commit 0d97ac1

Browse files
committed
Update more CUDA compiler id checks.
1 parent b3827cb commit 0d97ac1

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
lines changed

examples/cmake/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ thrust_update_system_found_flags()
22

33
set(extra_cmake_flags)
44

5-
# Need to pass these when testing NVC++.
6-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
7-
set(extra_cmake_flags
8-
-D "CMAKE_CUDA_COMPILER_ID=${CMAKE_CUDA_COMPILER_ID}"
9-
-D "CMAKE_CUDA_COMPILER_FORCED=${CMAKE_CUDA_COMPILER_FORCED}"
10-
)
11-
endif()
12-
135
if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
146
# Do a basic check of the cmake/ThrustAddSubdir.cmake mechanism:
157
add_test(

testing/cmake/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,6 @@ thrust_update_system_found_flags()
22

33
set(extra_cmake_flags)
44

5-
# Need to pass these when testing NVC++.
6-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
7-
set(extra_cmake_flags
8-
-D "CMAKE_CUDA_COMPILER_ID=${CMAKE_CUDA_COMPILER_ID}"
9-
-D "CMAKE_CUDA_COMPILER_FORCED=${CMAKE_CUDA_COMPILER_FORCED}"
10-
)
11-
endif()
12-
135
if (THRUST_CPP_FOUND AND THRUST_CUDA_FOUND)
146
# Test that we can use `find_package` on an installed Thrust:
157
add_test(

testing/unittest_static_assert.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ target_link_libraries(${test_target} PRIVATE thrust.silence_unreachable_code_war
55

66
# The machinery behind this test is not compatible with NVC++.
77
# See https://github.com/NVIDIA/thrust/issues/1397
8-
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
8+
if ("NVHPC" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
99
set_tests_properties(${test_target} PROPERTIES DISABLED True)
1010
endif()

0 commit comments

Comments
 (0)