mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 18:06:32 +08:00
Add ClDevice::isOcl21Conformant function
Do not report support of OpenCl C 2.0 if device is not OpenCL 2.1 conformant. Related-To: NEO-4368 Change-Id: I076d539506760953cc28eed39ff5e7585630df51 Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
0c9c55cd17
commit
c5f3fe5987
@@ -55,7 +55,7 @@ struct DeviceGetCapsTest : public ::testing::Test {
|
||||
EXPECT_EQ(CL_MAKE_VERSION(1u, 1u, 0u), (++openclCWithVersionIterator)->version);
|
||||
EXPECT_EQ(CL_MAKE_VERSION(1u, 2u, 0u), (++openclCWithVersionIterator)->version);
|
||||
|
||||
if (clDevice.areOcl21FeaturesEnabled()) {
|
||||
if (clDevice.isOcl21Conformant()) {
|
||||
EXPECT_EQ(CL_MAKE_VERSION(2u, 0u, 0u), (++openclCWithVersionIterator)->version);
|
||||
}
|
||||
if (clDevice.getEnabledClVersion() == 30) {
|
||||
@@ -251,6 +251,10 @@ TEST_F(DeviceGetCapsTest, WhenCreatingDeviceThenCapsArePopulatedCorrectly) {
|
||||
if (device->getHardwareInfo().capabilityTable.supportsOcl21Features == false && is64bit) {
|
||||
EXPECT_TRUE(sharedCaps.force32BitAddressess);
|
||||
}
|
||||
|
||||
if (caps.numericClVersion == 21) {
|
||||
EXPECT_TRUE(device->isOcl21Conformant());
|
||||
}
|
||||
}
|
||||
|
||||
HWTEST_F(DeviceGetCapsTest, givenDeviceWhenAskingForSubGroupSizesThenReturnCorrectValues) {
|
||||
|
||||
Reference in New Issue
Block a user