Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 16a9a20

Browse files
Xetla support 2024.2 (#309)
* fix block_load elems(drop 10%) * u1 __SYCL_DEPRECATED("u1 is reserved/unsupported") = 1, // unsigned 1 bit s1 __SYCL_DEPRECATED("s1 is reserved/unsupported") = 2, // signed 1 bit * save * update prefetch gather and scatter 2024.2 * update atomic * fix comilpe on 2024.1 * conflict
1 parent 36f736c commit 16a9a20

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

include/subgroup/tile/impl/payload_xe.hpp

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1655,11 +1655,12 @@ struct prefetch_payload_t<
16551655
reg_layout_>,
16561656
num_coop_sg_,
16571657
arch_tag_,
1658-
std::enable_if_t<(!arch_has_2d_load_store<arch_tag_>)&&(
1659-
((block_size_y_ != 1 || tile_size_y_ != 1) &&
1660-
mem_layout_ == mem_layout::row_major) ||
1661-
((block_size_x_ != 1 || tile_size_x_ != 1) &&
1662-
mem_layout_ == mem_layout::col_major))>> {
1658+
std::enable_if_t<
1659+
(!arch_has_2d_load_store<arch_tag_>) &&
1660+
(((block_size_y_ != 1 || tile_size_y_ != 1) &&
1661+
mem_layout_ == mem_layout::row_major) ||
1662+
((block_size_x_ != 1 || tile_size_x_ != 1) &&
1663+
mem_layout_ == mem_layout::col_major))>> {
16631664
using dtype = native_type_t<dtype_>;
16641665
using mem_desc_t =
16651666
mem_desc_t<dtype_, mem_layout_, mem_space::global, alignment_>;
@@ -1901,9 +1902,10 @@ struct prefetch_payload_t<
19011902
reg_layout_>,
19021903
num_coop_sg_,
19031904
arch_tag_,
1904-
std::enable_if_t<(arch_has_2d_load_store<arch_tag_>)&&(
1905-
((tile_size_y_ != 1) && mem_layout_ == mem_layout::row_major) ||
1906-
((tile_size_x_ != 1) && mem_layout_ == mem_layout::col_major))>> {
1905+
std::enable_if_t<
1906+
(arch_has_2d_load_store<arch_tag_>) &&
1907+
(((tile_size_y_ != 1) && mem_layout_ == mem_layout::row_major) ||
1908+
((tile_size_x_ != 1) && mem_layout_ == mem_layout::col_major))>> {
19071909
using dtype = dtype_;
19081910
using mem_desc_t =
19091911
mem_desc_t<dtype_, mem_layout_, mem_space::global, alignment_>;

0 commit comments

Comments
 (0)