mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-06 10:26:29 +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
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user