mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 02:18:05 +08:00
OCL cache per thread data
Add caching mechanism for local ids in OCL. Signed-off-by: Krystian Chmielewski <krystian.chmielewski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
8a9ea9afd7
commit
69bef975f0
@@ -117,6 +117,7 @@ class MockKernel : public Kernel {
|
||||
using Kernel::kernelSubmissionMap;
|
||||
using Kernel::kernelSvmGfxAllocations;
|
||||
using Kernel::kernelUnifiedMemoryGfxAllocations;
|
||||
using Kernel::localIdsCache;
|
||||
using Kernel::maxKernelWorkGroupSize;
|
||||
using Kernel::maxWorkGroupSizeForCrossThreadData;
|
||||
using Kernel::numberOfBindingTableStates;
|
||||
@@ -137,6 +138,7 @@ class MockKernel : public Kernel {
|
||||
|
||||
MockKernel(Program *programArg, const KernelInfo &kernelInfoArg, ClDevice &clDeviceArg)
|
||||
: Kernel(programArg, kernelInfoArg, clDeviceArg) {
|
||||
initializeLocalIdsCache();
|
||||
}
|
||||
|
||||
~MockKernel() override {
|
||||
@@ -281,6 +283,7 @@ class MockKernelWithInternals {
|
||||
kernelInfo.kernelDescriptor.kernelAttributes.simdSize = 32;
|
||||
kernelInfo.setCrossThreadDataSize(sizeof(crossThreadData));
|
||||
kernelInfo.setLocalIds({1, 1, 1});
|
||||
kernelInfo.kernelDescriptor.kernelAttributes.numLocalIdChannels = 3;
|
||||
|
||||
if (context == nullptr) {
|
||||
mockContext = new MockContext(deviceVector);
|
||||
|
||||
Reference in New Issue
Block a user