SWDEV-377423 - Fix kernel attribute missing

Fix missing issue of kernel attributes including vec_type_hint,
work_group_size_hint and reqd_work_group_size.
Make WorkGroupInfo's meta attributes initialized before other parameters
are initialized.
This way workGroupInfo_'s compileSizeHint_, compileSize_ and
compileVecTypeHint_ will be valid when they are used to create kernel
signature in Kernel::createSignature().
Fix a typo of ".workgorup_size_hint".

Change-Id: I4a1ede2210a25596ad7a935cd4debb896e0147f8


[ROCm/clr commit: cb30ce4e06]
This commit is contained in:
Tao Sang
2023-01-16 18:36:44 -05:00
committed by Tao Sang
parent b6d1602da0
commit 339bb6a7de
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1095,8 +1095,6 @@ bool Kernel::GetAttrCodePropMetadata() {
return false;
}
InitParameters(kernelMetaNode);
// Set the workgroup information for the kernel
workGroupInfo_.availableLDSSize_ = device().info().localMemSizePerCU_;
workGroupInfo_.availableSGPRs_ = 104;
@@ -1144,12 +1142,13 @@ bool Kernel::GetAttrCodePropMetadata() {
static_cast<void*>(this));
}
if (status != AMD_COMGR_STATUS_SUCCESS) {
LogError("Comgr Api failed with Status: \n");
return false;
}
InitParameters(kernelMetaNode);
return true;
}