mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 07:08:04 +08:00
fix: return proper value for zeKernelSuggestGroupSize
Resolves: HSD-18042274687 Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
2762166a7b
commit
828d6bafa7
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user