Optimize setKernelArgSVMPointer

If same pointer is already set, we don't need to set it again.

Related-To: NEO-6737

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2022-02-25 14:28:18 +00:00
committed by Compute-Runtime-Automation
parent 22ed1be1a3
commit b9d8d8c0fd
19 changed files with 111 additions and 45 deletions

View File

@ -273,7 +273,8 @@ TEST_F(BufferSetArgTest, GivenSvmPointerWhenSettingKernelArgThenAddressToPatchIs
retVal = pKernel->setArgSvmAlloc(
0,
ptrSVM,
pSvmAlloc);
pSvmAlloc,
0u);
ASSERT_EQ(CL_SUCCESS, retVal);
auto pKernelArg = (void **)(pKernel->getCrossThreadData() +