mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Change interface to program cross-thread data
Change-Id: I96bf4bddf1557f588fd745efca7b19ec2f38a78e
This commit is contained in:
committed by
sys_ocldev
parent
31bf5b9b43
commit
f3a732081e
@@ -20,8 +20,8 @@ inline size_t GpgpuWalkerHelper<GfxFamily>::setGpgpuWalkerThreadData(
|
||||
uint32_t simd,
|
||||
uint32_t workDim,
|
||||
bool localIdsGenerationByRuntime,
|
||||
bool kernelUsesLocalIds,
|
||||
bool inlineDataProgrammingRequired) {
|
||||
bool inlineDataProgrammingRequired,
|
||||
const iOpenCL::SPatchThreadPayload &threadPayload) {
|
||||
auto localWorkSize = localWorkSizesIn[0] * localWorkSizesIn[1] * localWorkSizesIn[2];
|
||||
|
||||
auto threadsPerWorkGroup = getThreadsPerWG(simd, localWorkSize);
|
||||
@@ -155,7 +155,8 @@ void GpgpuWalkerHelper<GfxFamily>::dispatchScheduler(
|
||||
size_t globalOffsets[3] = {0, 0, 0};
|
||||
size_t workGroups[3] = {(scheduler.getGws() / scheduler.getLws()), 1, 1};
|
||||
GpgpuWalkerHelper<GfxFamily>::setGpgpuWalkerThreadData(pGpGpuWalkerCmd, globalOffsets, globalOffsets, workGroups, localWorkSizes,
|
||||
simd, 1, localIdsGenerationByRuntime, kernelUsesLocalIds, inlineDataProgrammingRequired);
|
||||
simd, 1, localIdsGenerationByRuntime, inlineDataProgrammingRequired,
|
||||
*scheduler.getKernelInfo().patchInfo.threadPayload);
|
||||
|
||||
// Implement disabling special WA DisableLSQCROPERFforOCL if needed
|
||||
GpgpuWalkerHelper<GfxFamily>::applyWADisableLSQCROPERFforOCL(commandStream, scheduler, false);
|
||||
|
||||
Reference in New Issue
Block a user