From b7d7424aabd51ab55dcdd2fe93092cbbb48ac254 Mon Sep 17 00:00:00 2001 From: Kamil Kopryk Date: Mon, 20 Jan 2025 10:31:05 +0000 Subject: [PATCH] build: enable c++20 Related-To: NEO-10767 Signed-off-by: Kamil Kopryk --- CMakeLists.txt | 4 ++-- opencl/test/unit_test/program/printf_handler_tests.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f2133d0e2c..6e35d1ef4d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -300,8 +300,8 @@ if(NOT NEO_BINARY_DIR) set(NEO_BINARY_DIR ${CMAKE_BINARY_DIR}) endif() -# we use c++17 -set(CMAKE_CXX_STANDARD 17) +# we use c++20 +set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) # we force using response files diff --git a/opencl/test/unit_test/program/printf_handler_tests.cpp b/opencl/test/unit_test/program/printf_handler_tests.cpp index 8b959173b8..4bda734098 100644 --- a/opencl/test/unit_test/program/printf_handler_tests.cpp +++ b/opencl/test/unit_test/program/printf_handler_tests.cpp @@ -246,7 +246,6 @@ HWTEST_F(PrintfHandlerTests, givenPrintfHandlerWhenEnqueueIsBlockedThenDontUsePr class MyMockCommandQueueHw : public CommandQueueHw { public: using CommandQueueHw::CommandQueueHw; - using CommandQueueHw::enqueueKernel; WaitStatus waitForAllEngines(bool blockedQueue, PrintfHandler *printfHandler, bool cleanTemporaryAllocationsList) override { waitCalled = true;