Skip to content

Commit

Permalink
Patch cccl to hide visibility of all kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Jan 10, 2024
1 parent 3a1601d commit 94918af
Show file tree
Hide file tree
Showing 3 changed files with 1,504 additions and 1 deletion.
15 changes: 14 additions & 1 deletion cpp/cmake/thirdparty/get_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. You may obtain a copy of the License at
Expand Down Expand Up @@ -36,6 +36,19 @@ function(find_and_configure_cccl)
# Find or install CCCL with our custom set of patches
rapids_cpm_cccl(BUILD_EXPORT_SET cudf-exports INSTALL_EXPORT_SET cudf-exports)

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 cudf-exports)
rapids_export_post_find_package_code(INSTALL CCCL "${post_find_code}" EXPORT_SET cudf-exports)

endfunction()

find_and_configure_cccl()
Loading

0 comments on commit 94918af

Please sign in to comment.