mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
Move sharedSystemMemCapabilities to hwInfo
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6075
This commit is contained in:

committed by
Compute-Runtime-Automation

parent
8130727232
commit
7bbb43a563
@ -103,7 +103,7 @@ TEST_F(clSetKernelArgSVMPointerTests, GivenLocalAddressAndNullArgValueWhenSettin
|
||||
|
||||
TEST_F(clSetKernelArgSVMPointerTests, GivenInvalidArgValueWhenSettingKernelArgThenInvalidArgValueErrorIsReturned) {
|
||||
pDevice->deviceInfo.sharedSystemMemCapabilities = 0u;
|
||||
pDevice->sharedDeviceInfo.sharedSystemAllocationsSupport = false;
|
||||
pDevice->getRootDeviceEnvironment().getMutableHardwareInfo()->capabilityTable.sharedSystemMemCapabilities = 0;
|
||||
void *ptrHost = malloc(256);
|
||||
EXPECT_NE(nullptr, ptrHost);
|
||||
|
||||
@ -185,7 +185,7 @@ TEST_F(clSetKernelArgSVMPointerTests, GivenSvmAndPointerWithOffsetWhenSettingKer
|
||||
|
||||
TEST_F(clSetKernelArgSVMPointerTests, GivenSvmAndPointerWithInvalidOffsetWhenSettingKernelArgThenInvalidArgValueErrorIsReturned) {
|
||||
pDevice->deviceInfo.sharedSystemMemCapabilities = 0u;
|
||||
pDevice->sharedDeviceInfo.sharedSystemAllocationsSupport = false;
|
||||
pDevice->getRootDeviceEnvironment().getMutableHardwareInfo()->capabilityTable.sharedSystemMemCapabilities = 0;
|
||||
const ClDeviceInfo &devInfo = pDevice->getDeviceInfo();
|
||||
if (devInfo.svmCapabilities != 0) {
|
||||
void *ptrSvm = clSVMAlloc(pContext, CL_MEM_READ_WRITE, 256, 4);
|
||||
|
Reference in New Issue
Block a user