From 40eb41a0a1bf98679dc8ebc607b0baefaa841a5a Mon Sep 17 00:00:00 2001 From: Matthew Douglas <38992547+matthewdouglas@users.noreply.github.com> Date: Tue, 2 Dec 2025 17:54:32 -0500 Subject: [PATCH] CUDA 13: aggressive compression of binary size --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f451478c..3f28f8bd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -157,6 +157,11 @@ if(BUILD_CUDA) string(APPEND CMAKE_CUDA_FLAGS " --use_fast_math") + # It's safe for us to enable more aggressive compression for 13.0+ + if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "13.0") + string(APPEND CMAKE_CUDA_FLAGS " --compress-mode=size") + endif() + if(PTXAS_VERBOSE) string(APPEND CMAKE_CUDA_FLAGS " -Xptxas=-v") endif()