Always print error message with the returned error code before abort

Change-Id: I8479abc586937a50c90b2785c4ce7364e6e9732b
这个提交包含在:
Aryan Salmanpour 于 2020-07-07 16:28:30 -04:00 提交
1 父节点 5c2e64a43c
当前提交 4a901f3dd3
2 个文件已更改
+4 -2

没有与搜索条件相匹配的文件

+2 -1
查看文件
@@ -1903,7 +1903,8 @@ void VirtualGPU::submitMigrateMemObjects(amd::MigrateMemObjectsCommand& vcmd) {
static void callbackQueue(hsa_status_t status, hsa_queue_t* queue, void* data) {
if (status != HSA_STATUS_SUCCESS && status != HSA_STATUS_INFO_BREAK) {
// Abort on device exceptions.
DevLogPrintfError("VirtualGPU::callbackQueue aborting with status: %d \n", status);
ClPrint(amd::LOG_NONE, amd::LOG_ALWAYS, "VirtualGPU::callbackQueue aborting with status: 0x%x",
status);
abort();
}
}