Skip to content

Commit 00ca1ac

Browse files
authored
Merge pull request NVIDIA#1399 from allisonvacanti/nvhpc_static_assert_test
Disable unittest_state_assert on NVC++.
2 parents b7be11f + 61be02c commit 00ca1ac

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

testing/unittest_static_assert.cmake

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,9 @@
22
# This test unconditionally throws in some places, the compiler will detect that
33
# control flow will never reach some instructions. This is intentional.
44
target_link_libraries(${test_target} PRIVATE thrust.silence_unreachable_code_warnings)
5+
6+
# The machinery behind this test is not compatible with NVC++.
7+
# See https://github.com/NVIDIA/thrust/issues/1397
8+
if ("NVCXX" STREQUAL "${CMAKE_CUDA_COMPILER_ID}")
9+
set_tests_properties(${test_target} PROPERTIES DISABLED True)
10+
endif()

0 commit comments

Comments
 (0)