Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete Thrust functionality check #826

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions extern/cccl/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -41,24 +41,3 @@ set ( CUB_ENABLE_HEADER_TESTING OFF CACHE BOOL "Disable CUB header testing" )

# Get it into the current directory.
FetchContent_MakeAvailable( CCCL )

# Check if <thrust/pair.h> works out of the box.
include( CheckCXXSourceCompiles )
set( CMAKE_REQUIRED_INCLUDES
"${CCCL_SOURCE_DIR}/thrust"
"${CCCL_SOURCE_DIR}/libcudacxx/include" )
set( _THRUST_TEST_SOURCE "#include <thrust/pair.h>\nint main() { return 0; }" )
check_cxx_source_compiles( "${_THRUST_TEST_SOURCE}" TRACCC_THRUST_WORKS )
# If not, check if the _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS flag makes it
# work.
if( NOT TRACCC_THRUST_WORKS )
set( CMAKE_REQUIRED_DEFINITIONS -D_LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
check_cxx_source_compiles( "${_THRUST_TEST_SOURCE}"
TRACCC_THRUST_WORKS_WITH_PATCH )
if( TRACCC_THRUST_WORKS_WITH_PATCH )
target_compile_definitions( _Thrust_Thrust
INTERFACE _LIBCUDACXX_STRING_H_HAS_CONST_OVERLOADS )
else()
message( WARNING "Thrust does not seem to work. The build may fail." )
endif()
endif()