mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-10 15:12:56 +08:00
Add kernel algorithm to check any argument is using system memory
Related-To: NEO-6959 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5a3a39a281
commit
e07f9f0698
@@ -267,13 +267,13 @@ TEST_F(BufferSetArgTest, GivenSvmPointerWhenSettingKernelArgThenAddressToPatchIs
|
||||
|
||||
auto svmData = pContext->getSVMAllocsManager()->getSVMAlloc(ptrSVM);
|
||||
ASSERT_NE(nullptr, svmData);
|
||||
GraphicsAllocation *pSvmAlloc = svmData->gpuAllocations.getGraphicsAllocation(pDevice->getRootDeviceIndex());
|
||||
EXPECT_NE(nullptr, pSvmAlloc);
|
||||
GraphicsAllocation *svmAllocation = svmData->gpuAllocations.getGraphicsAllocation(pDevice->getRootDeviceIndex());
|
||||
EXPECT_NE(nullptr, svmAllocation);
|
||||
|
||||
retVal = pKernel->setArgSvmAlloc(
|
||||
0,
|
||||
ptrSVM,
|
||||
pSvmAlloc,
|
||||
svmAllocation,
|
||||
0u);
|
||||
ASSERT_EQ(CL_SUCCESS, retVal);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user