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

Commit f41a8c1

Browse files
DDElesunjiweiswift
andauthored
revert max_load_vec_elems (#323)
Co-authored-by: Swift.Sun <jiwei1.sun@intel.com>
1 parent 4c7560c commit f41a8c1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/subgroup/tile/impl/load_xe.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -394,12 +394,10 @@ tile_load(tile_t& tile, payload_t& payload) {
394394
using dtype = typename payload_t::dtype;
395395
static constexpr uint32_t load_len = tile_t::tile_elems;
396396
static constexpr gpu_arch arch_tag = payload_t::arch_tag;
397-
static constexpr uint32_t power2_block_elems =
398-
detail::getNextPowerOf2<uint32_t(tile_t::block_elems * sizeof(dtype))>();
399397

400398
using load_store_attr = load_store_attr_t<msg_type::block_1d, arch_tag>;
401399
static constexpr uint32_t max_load_vec_len =
402-
std::min(power2_block_elems, load_store_attr::max_aligned_load_vec_len);
400+
load_store_attr::max_aligned_load_vec_len;
403401

404402
static constexpr uint32_t max_load_vec_elems =
405403
max_load_vec_len / sizeof(dtype);

0 commit comments

Comments
 (0)