wsl/hsakmt: add OverrideEngineId property
partial cherry pick 671c6d8(1106575: libhsakmt: add OverrideEngineId property | https://gerrit-git.amd.com/c/hsa/ec/rocr-runtime/+/1106575) Signed-off-by: Flora Cui <flora.cui@amd.com>
This commit is contained in:
+3
-3
@@ -708,9 +708,9 @@ static HSAKMT_STATUS topology_sysfs_get_node_props(uint32_t node_id,
|
||||
pr_err("HSA_OVERRIDE_GFX_VERSION %s is invalid\n", envvar);
|
||||
return HSAKMT_STATUS_ERROR;
|
||||
}
|
||||
props->EngineId.ui32.Major = major & 0x3f;
|
||||
props->EngineId.ui32.Minor = minor & 0xff;
|
||||
props->EngineId.ui32.Stepping = step & 0xff;
|
||||
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();
|
||||
|
||||
Reference in New Issue
Block a user