mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
feature: enable C++20
Related-To: NEO-10767 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
0370c5afa2
commit
137e004767
@ -1,5 +1,5 @@
|
||||
#
|
||||
# Copyright (C) 2018-2024 Intel Corporation
|
||||
# Copyright (C) 2018-2025 Intel Corporation
|
||||
#
|
||||
# SPDX-License-Identifier: MIT
|
||||
#
|
||||
@ -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
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2023 Intel Corporation
|
||||
* Copyright (C) 2018-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@ -246,7 +246,17 @@ HWTEST_F(PrintfHandlerTests, givenPrintfHandlerWhenEnqueueIsBlockedThenDontUsePr
|
||||
class MyMockCommandQueueHw : public CommandQueueHw<FamilyType> {
|
||||
public:
|
||||
using CommandQueueHw<FamilyType>::CommandQueueHw;
|
||||
using CommandQueueHw<FamilyType>::enqueueKernel;
|
||||
|
||||
cl_int enqueueKernel(Kernel *kernel,
|
||||
cl_uint workDim,
|
||||
const size_t *globalWorkOffset,
|
||||
const size_t *globalWorkSize,
|
||||
const size_t *localWorkSize,
|
||||
cl_uint numEventsInWaitList,
|
||||
const cl_event *eventWaitList,
|
||||
cl_event *event) override {
|
||||
return this->CommandQueueHw<FamilyType>::enqueueKernel(kernel, workDim, globalWorkOffset, globalWorkSize, localWorkSize, numEventsInWaitList, eventWaitList, event);
|
||||
}
|
||||
|
||||
WaitStatus waitForAllEngines(bool blockedQueue, PrintfHandler *printfHandler, bool cleanTemporaryAllocationsList) override {
|
||||
waitCalled = true;
|
||||
|
@ -128,7 +128,9 @@ void PrintFormatter::adjustFormatString<int64_t>(std::string &formatString) {
|
||||
UNRECOVERABLE_IF(formatString.size() - 1 == longPosition);
|
||||
|
||||
if (formatString.at(longPosition + 1) != 'l') {
|
||||
formatString.insert(longPosition, "l");
|
||||
formatString.append(1, '\0');
|
||||
std::move_backward(formatString.begin() + longPosition, formatString.end() - 1, formatString.end());
|
||||
formatString[longPosition] = 'l';
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user