Skip to content

Commit 9ecbc66

Browse files
Use rapids_cuda_enable_fatbin_compression (#273)
Standardize compression flags via rapids_cuda_enable_fatbin_compression Authors: - Robert Maynard (https://github.com/robertmaynard) - Alex Barghi (https://github.com/alexbarghi-nv) Approvers: - Bradley Dice (https://github.com/bdice) - Alex Barghi (https://github.com/alexbarghi-nv) URL: #273
1 parent fec4b94 commit 9ecbc66

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

cpp/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,8 @@ endif(CMAKE_COMPILER_IS_GNUCXX)
9696
message("-- Building for GPU_ARCHS = ${CMAKE_CUDA_ARCHITECTURES}")
9797

9898
# Enable device code compression to reduce binary sizes
99-
list(APPEND WHOLEGRAPH_CUDA_FLAGS -Xfatbin=-compress-all)
100-
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA"
101-
AND (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.9 AND CMAKE_CUDA_COMPILER_VERSION
102-
VERSION_LESS 13.0)
103-
)
104-
list(APPEND WHOLEGRAPH_CUDA_FLAGS -Xfatbin=--compress-level=3)
105-
endif()
99+
include(${rapids-cmake-dir}/cuda/enable_fatbin_compression.cmake)
100+
rapids_cuda_enable_fatbin_compression(VARIABLE WHOLEGRAPH_CUDA_FLAGS TUNE_FOR rapids)
106101

107102
# Option to enable line info in CUDA device compilation to allow introspection when profiling /
108103
# memchecking

0 commit comments

Comments
 (0)