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:
Filip Hazubski
2020-03-05 18:13:32 +01:00
committed by sys_ocldev
parent c5454d6cce
commit 5ac8d8e667
83 changed files with 682 additions and 554 deletions

View File

@@ -182,7 +182,7 @@ TEST_F(PerformanceHintTest, GivenAlignedHostPtrWhenSubbufferIsCreatingThenContex
TEST_F(PerformanceHintTest, GivenContextWhenSVMAllocIsCreatingThenContextProvidesHintAboutAlignment) {
const DeviceInfo &devInfo = pPlatform->getDevice(0)->getDeviceInfo();
const ClDeviceInfo &devInfo = pPlatform->getClDevice(0)->getDeviceInfo();
if (devInfo.svmCapabilities != 0) {
cl_mem_flags flg = CL_MEM_READ_WRITE;

View File

@@ -114,8 +114,8 @@ struct PerformanceHintCommandQueueTest : public PerformanceHintTest,
PerformanceHintTest::SetUp();
std::tie(profilingEnabled, preemptionSupported) = GetParam();
device = new MockDevice;
device->deviceInfo.preemptionSupported = preemptionSupported;
clDevice = new MockClDevice{device};
clDevice->deviceInfo.preemptionSupported = preemptionSupported;
}
void TearDown() override {
@@ -124,7 +124,7 @@ struct PerformanceHintCommandQueueTest : public PerformanceHintTest,
PerformanceHintTest::TearDown();
}
MockDevice *device;
ClDevice *clDevice;
MockClDevice *clDevice;
cl_command_queue cmdQ;
bool profilingEnabled;
bool preemptionSupported;