@@ -59,12 +59,9 @@ option(CUDA_ENABLE_LINEINFO
5959)
6060option (CUDA_WARNINGS_AS_ERRORS "Enable -Werror=all-warnings for all CUDA compilation" ON )
6161
62- # cudart can be statically linked or dynamically linked. The python ecosystem wants dynamic linking
63- option (CUDA_STATIC_RUNTIME "Statically link the CUDA runtime" ON )
64-
65- set (DEFAULT_CUDF_BUILD_STREAMS_TEST_UTIL ON )
66-
67- if (CUDA_STATIC_RUNTIME OR NOT BUILD_SHARED_LIBS )
62+ # Stream testing requires dynamic CUDA runtime linking, which is no longer supported
63+ set (DEFAULT_CUDF_BUILD_STREAMS_TEST_UTIL OFF )
64+ if (BUILD_SHARED_LIBS )
6865 set (DEFAULT_CUDF_BUILD_STREAMS_TEST_UTIL OFF )
6966endif ()
7067
@@ -98,7 +95,6 @@ message(
9895 VERBOSE
9996 "CUDF: Enable the -lineinfo option for nvcc (useful for cuda-memcheck / profiler): ${CUDA_ENABLE_LINEINFO} "
10097)
101- message (VERBOSE "CUDF: Statically link the CUDA runtime: ${CUDA_STATIC_RUNTIME} " )
10298message (VERBOSE
10399 "CUDF: Build with remote IO (e.g. AWS S3) support through KvikIO: ${CUDF_KVIKIO_REMOTE_IO} "
104100)
@@ -989,7 +985,7 @@ if(TARGET conda_env)
989985 target_link_libraries (cudf PRIVATE conda_env )
990986endif ()
991987
992- rapids_cuda_set_runtime (cudf USE_STATIC ${CUDA_STATIC_RUNTIME} )
988+ rapids_cuda_set_runtime (cudf USE_STATIC ON )
993989
994990file (
995991 WRITE "${CUDF_BINARY_DIR} /fatbin.ld"
@@ -1036,7 +1032,7 @@ if(CUDF_BUILD_TESTUTIL)
10361032 PUBLIC cudf
10371033 PRIVATE $<TARGET_NAME_IF_EXISTS :conda_env >
10381034 )
1039- rapids_cuda_set_runtime (cudftest_default_stream USE_STATIC ${CUDA_STATIC_RUNTIME} )
1035+ rapids_cuda_set_runtime (cudftest_default_stream USE_STATIC ON )
10401036
10411037 add_library (cudf::cudftest_default_stream ALIAS cudftest_default_stream )
10421038
@@ -1067,7 +1063,7 @@ if(CUDF_BUILD_TESTUTIL)
10671063 cudftestutil INTERFACE "$<BUILD_INTERFACE :${CUDF_SOURCE_DIR} >"
10681064 "$<BUILD_INTERFACE :${CUDF_SOURCE_DIR} /src >"
10691065 )
1070- rapids_cuda_set_runtime (cudftestutil USE_STATIC ${CUDA_STATIC_RUNTIME} )
1066+ rapids_cuda_set_runtime (cudftestutil USE_STATIC ON )
10711067 add_library (cudf::cudftestutil ALIAS cudftestutil )
10721068
10731069 add_library (cudftestutil_impl INTERFACE )
@@ -1114,12 +1110,10 @@ endif()
11141110
11151111# * build cudf_identify_stream_usage --------------------------------------------------------------
11161112if (CUDF_BUILD_STREAMS_TEST_UTIL)
1117- if (CUDA_STATIC_RUNTIME)
1118- message (
1119- FATAL_ERROR
1120- "Stream identification cannot be used with a static CUDA runtime. Please set CUDA_STATIC_RUNTIME=OFF or CUDF_BUILD_STREAMS_TEST_UTIL=OFF."
1121- )
1122- endif ()
1113+ message (
1114+ FATAL_ERROR
1115+ "Stream identification is not supported because it requires dynamic CUDA runtime linking. Please set CUDF_BUILD_STREAMS_TEST_UTIL=OFF."
1116+ )
11231117
11241118 # Libraries for stream-related testing. We build the library twice, one with STREAM_MODE_TESTING
11251119 # on and one with it set to off. Each test will then be configured to use the appropriate library
@@ -1147,7 +1141,7 @@ if(CUDF_BUILD_STREAMS_TEST_UTIL)
11471141 target_include_directories (${_tgt} PRIVATE "$<BUILD_INTERFACE :${CUDF_SOURCE_DIR} /include >" )
11481142 target_link_libraries (${_tgt} PUBLIC CUDA::cudart rmm::rmm )
11491143
1150- rapids_cuda_set_runtime (${_tgt} USE_STATIC ${CUDA_STATIC_RUNTIME} )
1144+ rapids_cuda_set_runtime (${_tgt} USE_STATIC ON )
11511145 add_library (cudf::${_tgt} ALIAS ${_tgt} )
11521146
11531147 if ("${_mode} " STREQUAL "testing" )
0 commit comments