mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 00:24:58 +08:00
- allocate assert buffer when kernel has assert - track assert kernels in cmdlists and cmdqueues - check and print assert at sync calls: cmdqueue synchronize(), fence synchronize(), event hostSynchronize(), synchronous imm cmdlists append() Related-To: NEO-5753 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
24 lines
485 B
C
24 lines
485 B
C
/*
|
|
* Copyright (C) 2023 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "shared/source/assert_handler/assert_handler.h"
|
|
|
|
struct MockAssertHandler : NEO::AssertHandler {
|
|
|
|
using NEO::AssertHandler::assertBufferSize;
|
|
using NEO::AssertHandler::AssertHandler;
|
|
|
|
void printAssertAndAbort() override {
|
|
printAssertAndAbortCalled++;
|
|
NEO::AssertHandler::printAssertAndAbort();
|
|
}
|
|
|
|
uint32_t printAssertAndAbortCalled = 0;
|
|
};
|