Use FusedEu Dpas W/A only in ACM

Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
This commit is contained in:
Maciej Plewka
2023-03-08 10:42:29 +00:00
committed by Compute-Runtime-Automation
parent 67b14e2034
commit 6ab9037c35
8 changed files with 86 additions and 29 deletions

View File

@@ -2402,7 +2402,7 @@ inline bool getFusedEuDisabled(Kernel &kernel, Device *device, const ze_group_co
bool fusedEuDisabled = kernelAttributes.flags.requiresDisabledEUFusion;
auto &productHelper = device->getProductHelper();
if (productHelper.isCalculationForDisablingEuFusionWithDpasNeeded()) {
if (productHelper.isCalculationForDisablingEuFusionWithDpasNeeded(device->getHwInfo())) {
if (threadGroupDimensions) {
uint32_t *groupCountPtr = nullptr;
uint32_t groupCount[3] = {};
@@ -2412,7 +2412,7 @@ inline bool getFusedEuDisabled(Kernel &kernel, Device *device, const ze_group_co
groupCount[2] = threadGroupDimensions->groupCountZ;
groupCountPtr = groupCount;
}
fusedEuDisabled |= productHelper.isFusedEuDisabledForDpas(kernelAttributes.flags.usesSystolicPipelineSelectMode, kernel.getGroupSize(), groupCountPtr);
fusedEuDisabled |= productHelper.isFusedEuDisabledForDpas(kernelAttributes.flags.usesSystolicPipelineSelectMode, kernel.getGroupSize(), groupCountPtr, device->getHwInfo());
}
}
return fusedEuDisabled;