mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
refactor: don't use global ProductHelper getter 16
Related-To: NEO-6853 Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
e970af3657
commit
5e059d4b30
@@ -27,11 +27,11 @@ Vec3<size_t> computeWorkgroupSize(const DispatchInfo &dispatchInfo) {
|
||||
|
||||
if (kernel != nullptr) {
|
||||
auto &device = dispatchInfo.getClDevice();
|
||||
const auto &hwInfo = device.getHardwareInfo();
|
||||
const auto &rootDeviceEnvironment = device.getRootDeviceEnvironment();
|
||||
auto &gfxCoreHelper = device.getGfxCoreHelper();
|
||||
if (DebugManager.flags.EnableComputeWorkSizeND.get()) {
|
||||
WorkSizeInfo wsInfo = createWorkSizeInfoFromDispatchInfo(dispatchInfo);
|
||||
if (wsInfo.slmTotalSize == 0 && !wsInfo.hasBarriers && !wsInfo.imgUsed && gfxCoreHelper.preferSmallWorkgroupSizeForKernel(kernel->getKernelInfo().heapInfo.KernelUnpaddedSize, hwInfo) &&
|
||||
if (wsInfo.slmTotalSize == 0 && !wsInfo.hasBarriers && !wsInfo.imgUsed && gfxCoreHelper.preferSmallWorkgroupSizeForKernel(kernel->getKernelInfo().heapInfo.KernelUnpaddedSize, rootDeviceEnvironment) &&
|
||||
((dispatchInfo.getDim() == 1) && (dispatchInfo.getGWS().x % wsInfo.simdSize * 2 == 0))) {
|
||||
wsInfo.maxWorkGroupSize = wsInfo.simdSize * 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user