From 4bce5f9b2dc4743b9e0bdf101a0d593053f4f099 Mon Sep 17 00:00:00 2001 From: Awni Hannun Date: Fri, 17 Oct 2025 12:09:21 -0700 Subject: [PATCH] suppress gcc 10.1 warnings (#2679) * suppress gcc 10.1 warnings * suppress gcc 10.1 warnings --- mlx/backend/cuda/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mlx/backend/cuda/CMakeLists.txt b/mlx/backend/cuda/CMakeLists.txt index 8c3885384..5c4bf7115 100644 --- a/mlx/backend/cuda/CMakeLists.txt +++ b/mlx/backend/cuda/CMakeLists.txt @@ -170,6 +170,10 @@ target_link_libraries(mlx PRIVATE CUDNN::cudnn_all) # Suppress nvcc warnings on MLX headers. target_compile_options(mlx PRIVATE $<$:-Xcudafe --diag_suppress=997>) +# Supress warnings: note: parameter passing for argument of type +# ‘std::pair’ when C++17 is enabled changed to match C++14 in GCC +# 10.1 +target_compile_options(mlx PRIVATE -Wno-psabi) # Install CCCL headers for JIT. install(DIRECTORY ${cccl_SOURCE_DIR}/include/cuda