From 0705c2b384738d9f17762724cc1e0a324d334770 Mon Sep 17 00:00:00 2001 From: Jagadish Krishnamoorthy Date: Tue, 1 Apr 2025 01:01:38 -0700 Subject: [PATCH] ROCm: Remove -Wno-interference-size compiler flag hipClang does not support -Wno-interference-size. Hence remove the option to avoid build error. Signed-off-by: Jagadish Krishnamoorthy --- cmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 560d1cd423083..8cb560bc95371 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -1265,6 +1265,7 @@ function(onnxruntime_set_compile_flags target_name) # Unsupported by Clang 18 yet. list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-dangling-reference) + list(REMOVE_ITEM ORT_HIP_WARNING_FLAGS -Wno-interference-size) # float16.h:90:12: error: ‘tmp’ is used uninitialized list(APPEND ORT_HIP_WARNING_FLAGS -Wno-uninitialized) list(APPEND ORT_HIP_WARNING_FLAGS -Wno-deprecated-copy)