Skip to content

Commit f6854da

Browse files
CUDA 13: aggressive compression of binary size (#1820)
1 parent 61c359d commit f6854da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ if(BUILD_CUDA)
157157

158158
string(APPEND CMAKE_CUDA_FLAGS " --use_fast_math")
159159

160+
# It's safe for us to enable more aggressive compression for 13.0+
161+
if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "13.0")
162+
string(APPEND CMAKE_CUDA_FLAGS " --compress-mode=size")
163+
endif()
164+
160165
if(PTXAS_VERBOSE)
161166
string(APPEND CMAKE_CUDA_FLAGS " -Xptxas=-v")
162167
endif()

0 commit comments

Comments
 (0)