mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Add ClDeviceInfo
DeviceInfo contains a subset of ClDeviceInfo values. Related-To: NEO-3938 Change-Id: Idae4fae4d25e1fb3106d8b95294fa70ebc6281df Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
c5454d6cce
commit
5ac8d8e667
@@ -18,8 +18,9 @@
|
||||
#include <cstdint>
|
||||
|
||||
TEST(AllocateGlobalSurfaceTest, GivenSvmAllocsManagerWhenGlobalsAreNotExportedThenMemoryIsAllocatedAsNonSvmAllocation) {
|
||||
MockDevice device;
|
||||
if (0 == device.getDeviceInfo().svmCapabilities) {
|
||||
auto &device = *(new MockDevice);
|
||||
MockClDevice clDevice{&device};
|
||||
if (0 == clDevice.getDeviceInfo().svmCapabilities) {
|
||||
return;
|
||||
}
|
||||
MockSVMAllocsManager svmAllocsManager(device.getMemoryManager());
|
||||
@@ -64,8 +65,9 @@ TEST(AllocateGlobalSurfaceTest, GivenSvmAllocsManagerWhenGlobalsAreNotExportedTh
|
||||
}
|
||||
|
||||
TEST(AllocateGlobalSurfaceTest, GivenSvmAllocsManagerWhenGlobalsAreExportedThenMemoryIsAllocatedAsSvmAllocation) {
|
||||
MockDevice device;
|
||||
if (0 == device.getDeviceInfo().svmCapabilities) {
|
||||
auto &device = *(new MockDevice);
|
||||
MockClDevice clDevice{&device};
|
||||
if (0 == clDevice.getDeviceInfo().svmCapabilities) {
|
||||
return;
|
||||
}
|
||||
MockMemoryManager memoryManager;
|
||||
|
||||
Reference in New Issue
Block a user