mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Allow to set shared system memory pointers in constant buffers.
Change-Id: Ie2a811c0f50abf667df82517abf2291e00a18460 Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
b25422deb1
commit
29613a2b1a
@@ -857,11 +857,13 @@ TEST(DeviceGetCapsTest, givenUnifiedMemoryShardeSystemFlagWhenDeviceIsCreatedItC
|
||||
|
||||
std::unique_ptr<MockDevice> device(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
|
||||
EXPECT_EQ(0u, device->getDeviceInfo().sharedSystemMemCapabilities);
|
||||
EXPECT_FALSE(device->areSharedSystemAllocationsAllowed());
|
||||
|
||||
DebugManager.flags.EnableSharedSystemUsmSupport.set(1u);
|
||||
device.reset(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
|
||||
cl_unified_shared_memory_capabilities_intel expectedProperties = CL_UNIFIED_SHARED_MEMORY_ACCESS_INTEL | CL_UNIFIED_SHARED_MEMORY_ATOMIC_ACCESS_INTEL | CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ACCESS_INTEL | CL_UNIFIED_SHARED_MEMORY_CONCURRENT_ATOMIC_ACCESS_INTEL;
|
||||
EXPECT_EQ(expectedProperties, device->getDeviceInfo().sharedSystemMemCapabilities);
|
||||
EXPECT_TRUE(device->areSharedSystemAllocationsAllowed());
|
||||
}
|
||||
|
||||
TEST(DeviceGetCapsTest, givenDeviceWithNullSourceLevelDebuggerWhenCapsAreInitializedThenSourceLevelDebuggerActiveIsSetToFalse) {
|
||||
|
||||
Reference in New Issue
Block a user