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 45c8ad8
Show file tree
Hide file tree
Showing 4 changed files with 2,073 additions and 2 deletions.
18 changes: 17 additions & 1 deletion rapids-cmake/cpm/cccl.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#=============================================================================
# Copyright (c) 2023, NVIDIA CORPORATION.
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down 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 45c8ad8

Please sign in to comment.