Disable cl_khr_subgroups extension

Related-To: NEO-3807

Change-Id: I03d6a72f897b883c10cff4f31c152d7c9f100b43
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2019-10-14 15:27:05 +02:00
committed by sys_ocldev
parent 09c775f347
commit 332e02ef27
6 changed files with 34 additions and 7 deletions

View File

@@ -118,7 +118,9 @@ TEST(DeviceGetCapsTest, validate) {
EXPECT_EQ(16u, caps.maxSubGroups[1]);
EXPECT_EQ(32u, caps.maxSubGroups[2]);
if (device->getEnabledClVersion() >= 21) {
auto &hwHelper = HwHelper::get(platformDevices[0]->platform.eRenderCoreFamily);
auto subGroupsSupported = hwHelper.allowsIndependentForwardProgress();
if (device->getEnabledClVersion() >= 21 && subGroupsSupported) {
EXPECT_TRUE(caps.independentForwardProgress != 0);
} else {
EXPECT_FALSE(caps.independentForwardProgress != 0);
@@ -355,7 +357,13 @@ TEST(DeviceGetCapsTest, givenOpenCLVersion21WhenCapsAreCreatedThenDeviceReportsC
auto device = std::unique_ptr<Device>(MockDevice::createWithNewExecutionEnvironment<MockDevice>(platformDevices[0]));
const auto &caps = device->getDeviceInfo();
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_khr_subgroups")));
auto &hwHelper = HwHelper::get(platformDevices[0]->platform.eRenderCoreFamily);
auto subGroupsSupported = hwHelper.allowsIndependentForwardProgress();
if (subGroupsSupported) {
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_khr_subgroups")));
} else {
EXPECT_THAT(caps.deviceExtensions, testing::Not(testing::HasSubstr(std::string("cl_khr_subgroups"))));
}
}
TEST(DeviceGetCapsTest, givenOpenCLVersion20WhenCapsAreCreatedThenDeviceDoesntReportClKhrSubgroupsExtension) {