Force no shared system memory capabilities in svm tests.

Change-Id: I4133aac5bfe1097bbbbb3d3a28f4ddf34f88e004
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-09-05 13:16:33 +02:00
committed by sys_ocldev
parent b2a47ee9db
commit 3f12acb356

View File

@ -99,6 +99,7 @@ TEST_F(clSetKernelArgSVMPointerTests, GivenLocalAddressAndNullArgValueWhenSettin
}
TEST_F(clSetKernelArgSVMPointerTests, GivenInvalidArgValueWhenSettingKernelArgThenInvalidArgValueErrorIsReturned) {
pDevice->deviceInfo.sharedSystemMemCapabilities = 0u;
void *ptrHost = malloc(256);
EXPECT_NE(nullptr, ptrHost);
@ -179,6 +180,7 @@ TEST_F(clSetKernelArgSVMPointerTests, GivenSvmAndPointerWithOffsetWhenSettingKer
}
TEST_F(clSetKernelArgSVMPointerTests, GivenSvmAndPointerWithInvalidOffsetWhenSettingKernelArgThenInvalidArgValueErrorIsReturned) {
pDevice->deviceInfo.sharedSystemMemCapabilities = 0u;
const DeviceInfo &devInfo = pDevice->getDeviceInfo();
if (devInfo.svmCapabilities != 0) {
void *ptrSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);