mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
b2a47ee9db
commit
3f12acb356
@ -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);
|
||||
|
Reference in New Issue
Block a user