Skip to content

Commit 840ed4d

Browse files
authored
[ESIMD] Fix compile-time error in ESIMD/local_accessor_load_store.cpp (#12409)
Signed-off-by: Klochkov, Vyacheslav N <[email protected]>
1 parent 5e19a52 commit 840ed4d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

sycl/include/sycl/ext/intel/esimd/memory.hpp

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6408,22 +6408,22 @@ __ESIMD_API
64086408
/// efficient scatter is generated. If the stored vector is too long
64096409
/// for 1 flat-store GPU instruction, then a series of flat-store and/or
64106410
/// scatters may be generated.
6411-
/// @tparam Tx Element type.
6411+
/// @tparam T Element type.
64126412
/// @tparam N Number of elements to store.
6413-
/// @tparam AccessorTy Accessor type (auto-deduced).
6413+
/// @tparam AccessorT Accessor type (auto-deduced).
64146414
/// @param acc The local accessor to store to.
64156415
/// @param offset The byte-offset to store at.
64166416
/// @param vals The vector to store.
64176417
/// @param Flags Specifies the alignment.
64186418
///
6419-
template <typename Tx, int N, typename AccessorTy, typename Flags>
6419+
template <typename T, int N, typename AccessorT, typename Flags>
64206420
__ESIMD_API
64216421
std::enable_if_t<detail::is_local_accessor_with_v<
6422-
AccessorTy, detail::accessor_mode_cap::can_write> &&
6422+
AccessorT, detail::accessor_mode_cap::can_write> &&
64236423
is_simd_flag_type_v<Flags>>
6424-
block_store(AccessorTy acc, uint32_t offset, simd<Tx, N> vals, Flags) {
6425-
slm_block_store<Tx, N, Flags>(
6426-
offset + __ESIMD_DNS::localAccessorToOffset(acc), vals);
6424+
block_store(AccessorT acc, uint32_t offset, simd<T, N> vals, Flags flags) {
6425+
slm_block_store<T, N>(offset + __ESIMD_DNS::localAccessorToOffset(acc), vals,
6426+
flags);
64276427
}
64286428

64296429
/// Variant of gather that uses local accessor as a parameter

0 commit comments

Comments
 (0)