mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-20 13:11:34 +08:00
fix: don't adjust programmed per thread scratch size
when adjusting scratch space size then adjust only allocation size Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
ec5477e3ee
commit
112abeeeef
@ -186,10 +186,10 @@ HWCMDTEST_F(IGFX_XE_HP_CORE, CommandStreamReceiverHwTestXeHPAndLater, givenScrat
|
||||
uint32_t computeUnits = gfxCoreHelper.getComputeUnitsUsedForScratch(pDevice->getRootDeviceEnvironment());
|
||||
auto perThreadScratchSize = kernel.kernelInfo.kernelDescriptor.kernelAttributes.perThreadScratchSize[0];
|
||||
|
||||
auto &productHelper = pDevice->getProductHelper();
|
||||
productHelper.adjustPerThreadScratchSize(perThreadScratchSize);
|
||||
size_t scratchSpaceSize = perThreadScratchSize * computeUnits;
|
||||
|
||||
auto scratchSpaceSize = perThreadScratchSize * computeUnits;
|
||||
auto &productHelper = pDevice->getProductHelper();
|
||||
productHelper.adjustScratchSize(scratchSpaceSize);
|
||||
|
||||
commandQueue.enqueueKernel(kernel, 1, nullptr, &gws, nullptr, 0, nullptr, nullptr);
|
||||
commandQueue.flush();
|
||||
|
Reference in New Issue
Block a user