Add error message to assertion.

Warn that HSA_FORCE_ASIC_TYPE may be needed if the engine major id
assertion fails.

Change-Id: I67e01e99c3d1bdc84630ccfae489dce5e77961b5


[ROCm/ROCR-Runtime commit: 408fca0278]
This commit is contained in:
Sean Keely
2021-06-04 17:44:15 -05:00
rodzic 1d15f33b5c
commit 4c960d7b3d
+1 -1
Wyświetl plik
@@ -1114,7 +1114,7 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
props->DeviceId);
if (props->NumFComputeCores)
assert(props->EngineId.ui32.Major);
assert(props->EngineId.ui32.Major && "HSA_FORCE_ASIC_TYPE may be needed");
err:
free(read_buf);