Skip to content

Commit fcd17cd

Browse files
committed
Set more CTK 12.9 fatbin compression flags to maintain existing binary sizes
1 parent 2c69cec commit fcd17cd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

cpp/cmake/modules/ConfigureCUDA.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ list(APPEND CUVS_CXX_FLAGS "-DCUDA_API_PER_THREAD_DEFAULT_STREAM")
4949
list(APPEND CUVS_CUDA_FLAGS "-DCUDA_API_PER_THREAD_DEFAULT_STREAM")
5050
# make sure we produce smallest binary size
5151
list(APPEND CUVS_CUDA_FLAGS -Xfatbin=-compress-all)
52+
if(CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA" AND CMAKE_CUDA_COMPILER_VERSION VERSION_EQUAL 12.9)
53+
list(APPEND CUVS_CUDA_FLAGS -Xfatbin=--compress-level=3)
54+
endif()
5255

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

0 commit comments

Comments
 (0)