Revert "feature: enable C++20"

This reverts commit 137e004767.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2025-01-17 02:11:43 +01:00
committed by Compute-Runtime-Automation
parent d62122a656
commit c8cbed8e9b
3 changed files with 4 additions and 16 deletions

View File

@ -300,8 +300,8 @@ if(NOT NEO_BINARY_DIR)
set(NEO_BINARY_DIR ${CMAKE_BINARY_DIR})
endif()
# we use c++20
set(CMAKE_CXX_STANDARD 20)
# we use c++17
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
# we force using response files

View File

@ -246,17 +246,7 @@ HWTEST_F(PrintfHandlerTests, givenPrintfHandlerWhenEnqueueIsBlockedThenDontUsePr
class MyMockCommandQueueHw : public CommandQueueHw<FamilyType> {
public:
using CommandQueueHw<FamilyType>::CommandQueueHw;
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);
}
using CommandQueueHw<FamilyType>::enqueueKernel;
WaitStatus waitForAllEngines(bool blockedQueue, PrintfHandler *printfHandler, bool cleanTemporaryAllocationsList) override {
waitCalled = true;

View File

@ -128,9 +128,7 @@ void PrintFormatter::adjustFormatString<int64_t>(std::string &formatString) {
UNRECOVERABLE_IF(formatString.size() - 1 == longPosition);
if (formatString.at(longPosition + 1) != 'l') {
formatString.append(1, '\0');
std::move_backward(formatString.begin() + longPosition, formatString.end() - 1, formatString.end());
formatString[longPosition] = 'l';
formatString.insert(longPosition, "l");
}
}