Skip to content

Commit bc79ae5

Browse files
committed
SWDEV-519413 - Ignore ROCr shutdown events
ROCr now reports a shutdown event, but this is not a fatal error. Ignore this event.
1 parent 7e4b622 commit bc79ae5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

projects/clr/rocclr/device/rocm/rocdevice.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,6 +3334,9 @@ hsa_status_t Device::BackendErrorCallBackHandler(const hsa_amd_event_t* event, v
33343334
gpu_error = CL_DEVICE_NOT_AVAILABLE;
33353335
LogError("GPU Memory Error");
33363336
break;
3337+
case HSA_AMD_SYSTEM_SHUTDOWN_EVENT:
3338+
// This is not a fatal error just ignore it.
3339+
return HSA_STATUS_SUCCESS;
33373340
default:
33383341
gpu_error = CL_DEVICE_NOT_AVAILABLE;
33393342
LogError("Unknown Event Type ");

0 commit comments

Comments
 (0)