Move sharedSystemMemCapabilities to hwInfo

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6075
This commit is contained in:
Kamil Kopryk
2021-11-17 11:26:26 +00:00
committed by Compute-Runtime-Automation
parent 8130727232
commit 7bbb43a563
29 changed files with 62 additions and 22 deletions

View File

@ -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);