diff --git a/mlx/backend/cuda/CMakeLists.txt b/mlx/backend/cuda/CMakeLists.txt index 460507952..0be8e9f86 100644 --- a/mlx/backend/cuda/CMakeLists.txt +++ b/mlx/backend/cuda/CMakeLists.txt @@ -88,7 +88,9 @@ endif() target_compile_options( mlx PRIVATE "$<$:--Wno-deprecated-gpu-targets>") -if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.4.0) +# Use stronger binaries compression. This feature was introduced in CUDA 12.8 +# and requires drivers released after CUDA 12.4. +if(CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 12.8.0) target_compile_options( mlx PRIVATE "$<$:--compress-mode=size>") endif()