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

@ -15,7 +15,7 @@ using namespace NEO;
typedef Test<DeviceFixture> Gen9DeviceCaps;
GEN9TEST_F(Gen9DeviceCaps, skuSpecificCaps) {
const auto &caps = pDevice->getDeviceInfo();
const auto &caps = pClDevice->getDeviceInfo();
std::string extensionString = caps.deviceExtensions;
if (pDevice->getHardwareInfo().capabilityTable.ftrSupportsFP64) {
EXPECT_NE(std::string::npos, extensionString.find(std::string("cl_khr_fp64")));
@ -27,7 +27,7 @@ GEN9TEST_F(Gen9DeviceCaps, skuSpecificCaps) {
}
GEN9TEST_F(Gen9DeviceCaps, allSkusSupportCorrectlyRoundedDivideSqrt) {
const auto &caps = pDevice->getDeviceInfo();
const auto &caps = pClDevice->getDeviceInfo();
EXPECT_NE(0u, caps.singleFpConfig & CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT);
}