From 12e6defce4464a15ea68ac8bd2137eac95ce17ed Mon Sep 17 00:00:00 2001 From: qiuzhongya Date: Thu, 15 Dec 2022 22:07:39 +0800 Subject: [PATCH] support for gcc11 --- akg | 2 +- mindspore/ccsrc/plugin/device/cpu/kernel/CMakeLists.txt | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/akg b/akg index a5ba9c3e8d9..8b6fbd4b08d 160000 --- a/akg +++ b/akg @@ -1 +1 @@ -Subproject commit a5ba9c3e8d94a34932a05c3e7d805ac83d7bf67e +Subproject commit 8b6fbd4b08d0a84538591c7b746186169d2ec4f9 diff --git a/mindspore/ccsrc/plugin/device/cpu/kernel/CMakeLists.txt b/mindspore/ccsrc/plugin/device/cpu/kernel/CMakeLists.txt index 66bd14a61b6..25b76a07726 100644 --- a/mindspore/ccsrc/plugin/device/cpu/kernel/CMakeLists.txt +++ b/mindspore/ccsrc/plugin/device/cpu/kernel/CMakeLists.txt @@ -2,6 +2,10 @@ if(CMAKE_SYSTEM_NAME MATCHES "Darwin") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-non-abstract-non-virtual-dtor -Wno-overloaded-virtual") endif() +if(${CMAKE_SYSTEM_NAME} MATCHES "Linux" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-maybe-uninitialized") +endif() + if(ENABLE_CPU) file(GLOB CPU_SRC_LIST RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} "*.cc"