Skip to content

Commit 4bce5f9

Browse files
authored
suppress gcc 10.1 warnings (#2679)
* suppress gcc 10.1 warnings * suppress gcc 10.1 warnings
1 parent e9eab52 commit 4bce5f9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mlx/backend/cuda/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ target_link_libraries(mlx PRIVATE CUDNN::cudnn_all)
170170
# Suppress nvcc warnings on MLX headers.
171171
target_compile_options(mlx PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-Xcudafe
172172
--diag_suppress=997>)
173+
# Supress warnings: note: parameter passing for argument of type
174+
# ‘std::pair<float, float>’ when C++17 is enabled changed to match C++14 in GCC
175+
# 10.1
176+
target_compile_options(mlx PRIVATE -Wno-psabi)
173177

174178
# Install CCCL headers for JIT.
175179
install(DIRECTORY ${cccl_SOURCE_DIR}/include/cuda

0 commit comments

Comments
 (0)