Change interface to program cross-thread data

Change-Id: I96bf4bddf1557f588fd745efca7b19ec2f38a78e
This commit is contained in:
Zdanowicz, Zbigniew
2018-10-17 21:38:18 -07:00
committed by sys_ocldev
parent 31bf5b9b43
commit f3a732081e
10 changed files with 115 additions and 114 deletions

View File

@@ -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);