mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-28 16:48:45 +08:00
Make UNRECOVERABLE_IF more verbose in ULTs
Change-Id: Ia16781be7deb12c2eac6802f5f2459186b99ee08 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
763b08c9a5
commit
e22c90fa5d
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2019 Intel Corporation
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -7,12 +7,14 @@
|
||||
|
||||
#include "core/helpers/debug_helpers.h"
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
#include <string>
|
||||
|
||||
namespace NEO {
|
||||
void debugBreak(int line, const char *file) {
|
||||
}
|
||||
void abortUnrecoverable(int line, const char *file) {
|
||||
throw std::exception();
|
||||
std::string message = "Abort was called at " + std::to_string(line) + " line in file " + file;
|
||||
throw std::runtime_error(message);
|
||||
}
|
||||
} // namespace NEO
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user