Skip to content

Commit 1d2eabf

Browse files
griwesbrycelelbach
authored andcommitted
Disable RDC tests by default.
1 parent 308b785 commit 1d2eabf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,8 @@ enable_testing()
363363

364364
# Handle tests.
365365

366+
option(THRUST_ENABLE_TESTS_WITH_RDC "Also build all tests with RDC." OFF)
367+
366368
set(THRUST_TEST_RUN_ARGUMENTS
367369
-DTHRUST_SOURCE=${CMAKE_SOURCE_DIR}
368370
-P "${CMAKE_SOURCE_DIR}/cmake/run_test.cmake")
@@ -501,7 +503,7 @@ foreach (THRUST_TEST_SOURCE IN LISTS THRUST_TESTS)
501503
${THRUST_TEST_RUN_ARGUMENTS})
502504
endif ()
503505

504-
if ("CUDA" STREQUAL "${THRUST_DEVICE_SYSTEM}")
506+
if ("CUDA" STREQUAL "${THRUST_DEVICE_SYSTEM}" AND THRUST_ENABLE_TESTS_WITH_RDC)
505507
set(THRUST_TEST_RDC "thrust.test.${THRUST_TEST_CATEGORY}rdc.${THRUST_TEST_NAME}")
506508

507509
add_executable(

0 commit comments

Comments
 (0)