Files
compute-runtime/shared/source/helpers/debug_helpers.cpp
Compute-Runtime-Validation 6c5d9a6ed7 Revert "feature: extend TBX page fault manager from CPU implementation"
This reverts commit 51c0e80299.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
2024-12-12 12:30:22 +01:00

30 lines
718 B
C++

/*
* Copyright (C) 2018-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/helpers/debug_helpers.h"
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/helpers/abort.h"
#include <cassert>
#include <cstdio>
namespace NEO {
void debugBreak(int line, const char *file) {
if (debugManager.flags.EnableDebugBreak.get()) {
printf("Assert was called at %d line in file:\n%s\n", line, file);
fflush(stdout);
assert(false);
}
}
void abortUnrecoverable(int line, const char *file) {
printf("Abort was called at %d line in file:\n%s\n", line, file);
fflush(stdout);
abortExecution();
}
} // namespace NEO