wsl/libhsakmt: fix handling of HSA_OVERRIDE_GFX_VERSION option
Signed-off-by: Flora Cui <flora.cui@amd.com> Reviewed-by: Horatio Zhang <Hongkun.Zhang@amd.com> Part-of: <http://10.67.69.192/wsl/rocr-runtime/-/merge_requests/96>
This commit is contained in:
+3
-4
@@ -587,11 +587,10 @@ static HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
props.OverrideEngineId.ui32.Major = major & 0x3f;
|
||||
props.OverrideEngineId.ui32.Minor = minor & 0xff;
|
||||
props.OverrideEngineId.ui32.Stepping = step & 0xff;
|
||||
} else {
|
||||
props.EngineId.ui32.Major = device->Major();
|
||||
props.EngineId.ui32.Minor = device->Minor();
|
||||
props.EngineId.ui32.Stepping = device->Stepping();
|
||||
}
|
||||
props.EngineId.ui32.Major = device->Major();
|
||||
props.EngineId.ui32.Minor = device->Minor();
|
||||
props.EngineId.ui32.Stepping = device->Stepping();
|
||||
|
||||
snprintf((char *)props.AMDName, sizeof(props.AMDName) - 1, "GFX%06x",
|
||||
HSA_GET_GFX_VERSION_FULL(props.EngineId.ui32));
|
||||
|
||||
مرجع در شماره جدید
Block a user