libhsakmt: Add a message when a device is not supported

This helps to quickly triage problems.

Change-Id: Iad2b4b74209ab972be0c2f6311eeb3aaf098d29f
Signed-off-by: Yong Zhao <Yong.Zhao@amd.com>


[ROCm/ROCR-Runtime commit: ab2daf6538]
This commit is contained in:
Yong Zhao
2019-10-02 18:30:20 -04:00
parent 8b8f758dab
commit c1b8cb1464
+5 -1
View File
@@ -1066,7 +1066,11 @@ HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
props->MarketingName[i] = name[i];
props->MarketingName[i] = '\0';
}
}
} else if (props->DeviceId)
/* still return success */
pr_err("device ID 0x%x is not supported in libhsakmt\n",
props->DeviceId);
if (props->NumFComputeCores)
assert(props->EngineId.ui32.Major);