mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +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
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user