Skip to content

Commit 3b9ced1

Browse files
committed
Remove obsolete Thrust functionality check
This check was possibly useful in the past, but now produces spurious warnings. As the code runs fine even without this check on the Thrust installation, the easiest solution is simply to remove it.
1 parent af26461 commit 3b9ced1

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

extern/cccl/CMakeLists.txt

-21
Original file line numberDiff line numberDiff line change
@@ -41,24 +41,3 @@ set ( CUB_ENABLE_HEADER_TESTING OFF CACHE BOOL "Disable CUB header testing" )
4141

4242
# Get it into the current directory.
4343
FetchContent_MakeAvailable( CCCL )
44-
45-
# Check if <thrust/pair.h> works out of the box.
46-
include( CheckCXXSourceCompiles )
47-
set( CMAKE_REQUIRED_INCLUDES
48-
"${CCCL_SOURCE_DIR}/thrust"
49-
"${CCCL_SOURCE_DIR}/libcudacxx/include" )
50-
set( _THRUST_TEST_SOURCE "#include <thrust/pair.h>\nint main() { return 0; }" )
51-
check_cxx_source_compiles( "${_THRUST_TEST_SOURCE}" TRACCC_THRUST_WORKS )
52-
# If not, check if the _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS flag makes it
53-
# work.
54-
if( NOT TRACCC_THRUST_WORKS )
55-
set( CMAKE_REQUIRED_DEFINITIONS -D_LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
56-
check_cxx_source_compiles( "${_THRUST_TEST_SOURCE}"
57-
TRACCC_THRUST_WORKS_WITH_PATCH )
58-
if( TRACCC_THRUST_WORKS_WITH_PATCH )
59-
target_compile_definitions( _Thrust_Thrust
60-
INTERFACE _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
61-
else()
62-
message( WARNING "Thrust does not seem to work. The build may fail." )
63-
endif()
64-
endif()

0 commit comments

Comments
 (0)