Skip to content

Commit

Permalink
Mark all cccl and cuco kernels with hidden visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 16, 2024
1 parent 9798e7d commit c04724c
Show file tree
Hide file tree
Showing 4 changed files with 2,072 additions and 1 deletion.
16 changes: 16 additions & 0 deletions rapids-cmake/cpm/cccl.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,22 @@ function(rapids_cpm_cccl)
EXPORT_SET ${_RAPIDS_INSTALL_EXPORT_SET} CONDITION to_install)
endif()

# Can be removed once we move to CCCL 2.3
#
target_compile_definitions(CCCL::CCCL INTERFACE THRUST_DISABLE_ABI_NAMESPACE)
target_compile_definitions(CCCL::CCCL INTERFACE THRUST_IGNORE_ABI_NAMESPACE_ERROR)
set(post_find_code
[=[
target_compile_definitions(CCCL::CCCL INTERFACE THRUST_DISABLE_ABI_NAMESPACE)
target_compile_definitions(CCCL::CCCL INTERFACE THRUST_IGNORE_ABI_NAMESPACE_ERROR)
]=])
include("${rapids-cmake-dir}/export/detail/post_find_package_code.cmake")
rapids_export_post_find_package_code(BUILD CCCL "${post_find_code}" EXPORT_SET
${_RAPIDS_BUILD_EXPORT_SET})
rapids_export_post_find_package_code(INSTALL CCCL "${post_find_code}" EXPORT_SET
${_RAPIDS_INSTALL_EXPORT_SET} CONDITION to_install)


# Propagate up variables that CPMFindPackage provides
set(CCCL_SOURCE_DIR "${CCCL_SOURCE_DIR}" PARENT_SCOPE)
set(CCCL_BINARY_DIR "${CCCL_BINARY_DIR}" PARENT_SCOPE)
Expand Down
Loading

0 comments on commit c04724c

Please sign in to comment.