fix: return proper value for zeKernelSuggestGroupSize

Resolves: HSD-18042274687
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2025-05-29 17:14:54 +00:00
committed by Compute-Runtime-Automation
parent 2762166a7b
commit 828d6bafa7
7 changed files with 36 additions and 16 deletions

View File

@@ -427,7 +427,7 @@ ze_result_t ModuleTranslationUnit::processUnpackedBinary() {
}
for (auto &kernelInfo : this->programInfo.kernelInfos) {
deviceInfoConstants.maxWorkGroupSize = gfxCoreHelper.calculateMaxWorkGroupSize(kernelInfo->kernelDescriptor, static_cast<uint32_t>(device->getDeviceInfo().maxWorkGroupSize));
deviceInfoConstants.maxWorkGroupSize = gfxCoreHelper.calculateMaxWorkGroupSize(kernelInfo->kernelDescriptor, static_cast<uint32_t>(device->getDeviceInfo().maxWorkGroupSize), device->getNEODevice()->getRootDeviceEnvironment());
kernelInfo->apply(deviceInfoConstants);
}
@@ -905,7 +905,7 @@ const KernelImmutableData *ModuleImp::getKernelImmutableData(const char *kernelN
}
uint32_t ModuleImp::getMaxGroupSize(const NEO::KernelDescriptor &kernelDescriptor) const {
return this->device->getGfxCoreHelper().calculateMaxWorkGroupSize(kernelDescriptor, static_cast<uint32_t>(this->device->getDeviceInfo().maxWorkGroupSize));
return this->device->getGfxCoreHelper().calculateMaxWorkGroupSize(kernelDescriptor, static_cast<uint32_t>(this->device->getDeviceInfo().maxWorkGroupSize), device->getNEODevice()->getRootDeviceEnvironment());
}
void ModuleImp::createBuildOptions(const char *pBuildFlags, std::string &apiOptions, std::string &internalBuildOptions) {