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

Commit 4091c4e

Browse files
committed
enable 2d payload on Xe2
1 parent 8be0da2 commit 4091c4e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/subgroup/tile/impl/payload_xe.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ struct mem_payload_t<
11011101
tile_desc_,
11021102
msg_type::block_2d,
11031103
arch_tag_,
1104-
std::enable_if_t<(arch_tag_ <= gpu_arch::XeHpg)>> {
1104+
std::enable_if_t<(arch_has_2d_load_store<arch_tag_>)>> {
11051105
using dtype = native_type_t<dtype_>;
11061106
using mem_desc_t =
11071107
mem_desc_t<dtype_, mem_layout_, mem_space::global, alignment_>;
@@ -1652,7 +1652,7 @@ struct prefetch_payload_t<
16521652
num_coop_sg_,
16531653
arch_tag_,
16541654
std::enable_if_t<
1655-
arch_tag_ <= gpu_arch::XeHpg &&
1655+
arch_has_2d_load_store<arch_tag_> &&
16561656
((block_size_y_ != 1 && mem_layout_ == mem_layout::row_major) ||
16571657
(block_size_x_ != 1 && mem_layout_ == mem_layout::col_major))>> {
16581658
using dtype = native_type_t<dtype_>;
@@ -2305,4 +2305,4 @@ struct prefetch_payload_t<
23052305
__XETLA_API void update_tdesc([[maybe_unused]] int offset) {}
23062306
};
23072307

2308-
} // namespace gpu::xetla::subgroup
2308+
} // namespace gpu::xetla::subgroup

include/subgroup/tile/impl/prefetch_xe.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,4 +195,4 @@ __XETLA_API
195195
typename std::enable_if_t<detail::check_prefetch_type<payload_t>::is_local>
196196
tile_prefetch([[maybe_unused]] payload_t& payload) {}
197197

198-
} // namespace gpu::xetla::subgroup
198+
} // namespace gpu::xetla::subgroup

0 commit comments

Comments
 (0)