Skip to content

Commit

Permalink
When using CUDA 12.4+ use zstd compression
Browse files Browse the repository at this point in the history
  • Loading branch information
robertmaynard committed Apr 1, 2024
1 parent 0f11d07 commit b8dfca0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cpp/cmake/modules/ConfigureCUDA.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ list(APPEND RAFT_CXX_FLAGS "-DCUDA_API_PER_THREAD_DEFAULT_STREAM")
list(APPEND RAFT_CUDA_FLAGS "-DCUDA_API_PER_THREAD_DEFAULT_STREAM")
# make sure we produce smallest binary size
list(APPEND RAFT_CUDA_FLAGS -Xfatbin=-compress-all)
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND
CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.4.0)
list(APPEND RAFT_CUDA_FLAGS -Xfatbin=-compress-algo=5)
endif()

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

0 comments on commit b8dfca0

Please sign in to comment.