Always print error message with the returned error code before abort
Change-Id: I8479abc586937a50c90b2785c4ce7364e6e9732b
Tá an tiomantas seo le fáil i:
1 tuismitheoir
5c2e64a43c
tiomantas
4a901f3dd3
2 comhad athraithe
+4
-2
Níor tháinig aon chomhaid le do chuardach
@@ -2198,7 +2198,8 @@ bool Device::SetClockMode(const cl_set_device_clock_mode_input_amd setClockModeI
|
||||
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("Device::callbackQueue aborting with status: %d \n", status);
|
||||
ClPrint(amd::LOG_NONE, amd::LOG_ALWAYS, "Device::callbackQueue aborting with status: 0x%x",
|
||||
status);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir