Skip to content

Commit 9d4daca

Browse files
Add report of extensions
cl_intel_subgroup_matrix_multiply_accumulate and cl_intel_subgroup_split_matrix_multiply_accumulate Related-To: NEO-6745 Signed-off-by: Lukasz Wesierski <[email protected]>
1 parent 886d4a3 commit 9d4daca

File tree

6 files changed

+13
-3
lines changed

6 files changed

+13
-3
lines changed

opencl/test/unit_test/xe_hp_core/test_device_caps_xe_hp_core.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021 Intel Corporation
2+
* Copyright (C) 2021-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -52,6 +52,8 @@ XE_HP_CORE_TEST_F(XE_HP_COREDeviceCaps, givenXE_HP_COREWhenDeviceCapsInitialized
5252

5353
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_dot_accumulate")));
5454
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_local_block_io")));
55+
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_matrix_multiply_accumulate")));
56+
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_split_matrix_multiply_accumulate")));
5557
}
5658

5759
XE_HP_CORE_TEST_F(XE_HP_COREDeviceCaps, givenXE_HP_COREWhenCheckingCapsThenDeviceDoesNotSupportIndependentForwardProgress) {

opencl/test/unit_test/xe_hpc_core/test_device_caps_xe_hpc_core.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021 Intel Corporation
2+
* Copyright (C) 2021-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -41,6 +41,8 @@ XE_HPC_CORETEST_F(XeHpcCoreDeviceCaps, givenXeHpcCoreWhenCheckExtensionsThenDevi
4141
const auto &caps = pClDevice->getDeviceInfo();
4242

4343
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_khr_subgroups")));
44+
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_matrix_multiply_accumulate")));
45+
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_split_matrix_multiply_accumulate")));
4446
}
4547

4648
XE_HPC_CORETEST_F(XeHpcCoreDeviceCaps, givenXeHpcCoreWhenCheckingCapsThenDeviceDoesNotSupportIndependentForwardProgress) {

opencl/test/unit_test/xe_hpg_core/test_device_caps_xe_hpg_core.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2021 Intel Corporation
2+
* Copyright (C) 2021-2022 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -42,6 +42,7 @@ XE_HPG_CORETEST_F(XeHpgCoreDeviceCaps, giveDeviceExtensionsWhenDeviceCapsInitial
4242
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_create_buffer_with_properties")));
4343
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_dot_accumulate")));
4444
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_local_block_io")));
45+
EXPECT_THAT(caps.deviceExtensions, testing::HasSubstr(std::string("cl_intel_subgroup_matrix_multiply_accumulate")));
4546
}
4647

4748
XE_HPG_CORETEST_F(XeHpgCoreDeviceCaps, givenXeHpgCoreWhenCheckingCapsThenDeviceDoesNotSupportIndependentForwardProgress) {

shared/source/xe_hp_core/hw_helper_xe_hp_core.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ std::string HwHelperHw<Family>::getExtensions() const {
9595
std::string extensions;
9696
extensions += "cl_intel_dot_accumulate ";
9797
extensions += "cl_intel_subgroup_local_block_io ";
98+
extensions += "cl_intel_subgroup_matrix_multiply_accumulate ";
99+
extensions += "cl_intel_subgroup_split_matrix_multiply_accumulate ";
98100

99101
return extensions;
100102
}

shared/source/xe_hpc_core/hw_helper_xe_hpc_core.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,8 @@ std::string HwHelperHw<Family>::getExtensions() const {
273273
extensions += "cl_intel_subgroup_matrix_multiply_accumulate_for_PVC ";
274274
extensions += "cl_khr_subgroup_named_barrier ";
275275
extensions += "cl_intel_subgroup_extended_block_read ";
276+
extensions += "cl_intel_subgroup_matrix_multiply_accumulate ";
277+
extensions += "cl_intel_subgroup_split_matrix_multiply_accumulate ";
276278

277279
return extensions;
278280
}

shared/source/xe_hpg_core/hw_helper_xe_hpg_core.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ std::string HwHelperHw<Family>::getExtensions() const {
7474
extensions += "cl_intel_create_buffer_with_properties ";
7575
extensions += "cl_intel_dot_accumulate ";
7676
extensions += "cl_intel_subgroup_local_block_io ";
77+
extensions += "cl_intel_subgroup_matrix_multiply_accumulate ";
7778

7879
return extensions;
7980
}

0 commit comments

Comments
 (0)