mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
sys_ocldev
parent
09c775f347
commit
332e02ef27
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user