Skip to content

Commit e151c5c

Browse files
authored
[ESIMD][NFC] Rename L3 cache hint parameters to L2 to avoid confusion (#12862)
The experimental memory API used L3 to name the cache that always was L2 due to some historical reasons. The new non-experimental API names the same cache level as L2. This patch just renames the old L3 params to L2 to unify the naming in experimental and non-experimental namespaces and avoid the mess in cache names. Signed-off-by: Klochkov, Vyacheslav N <[email protected]>
1 parent 539c503 commit e151c5c

18 files changed

+333
-333
lines changed

sycl/include/sycl/ext/intel/experimental/esimd/detail/memory_intrin.hpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ __ESIMD_INTRIN void __esimd_raw_send_nbarrier_signal(
6969
///
7070
/// @tparam Ty is element type.
7171
/// @tparam L1H is L1 cache hint.
72-
/// @tparam L3H is L3 cache hint.
72+
/// @tparam L2H is L2 cache hint.
7373
/// @tparam AddressScale is the address scale.
7474
/// @tparam ImmOffset is the immediate offset added to each address.
7575
/// @tparam DS is the data size.
@@ -80,7 +80,7 @@ __ESIMD_INTRIN void __esimd_raw_send_nbarrier_signal(
8080
/// @param pred is predicates.
8181
/// @param offsets is the zero-based offsets in bytes.
8282
/// @param surf_ind is the surface index.
83-
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L3H,
83+
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L2H,
8484
uint16_t AddressScale, int ImmOffset, __ESIMD_ENS::lsc_data_size DS,
8585
__ESIMD_EDNS::lsc_vector_size VS,
8686
__ESIMD_EDNS::lsc_data_order _Transposed, int N,
@@ -98,7 +98,7 @@ __esimd_lsc_prefetch_bti(__ESIMD_DNS::simd_mask_storage_t<N> pred,
9898
///
9999
/// @tparam Ty is element type.
100100
/// @tparam L1H is L1 cache hint.
101-
/// @tparam L3H is L3 cache hint.
101+
/// @tparam L2H is L2 cache hint.
102102
/// @tparam DS is the data size.
103103
/// @tparam Transposed is the transposed version or not.
104104
/// @tparam NBlocks is the number of blocks.
@@ -120,7 +120,7 @@ __esimd_lsc_prefetch_bti(__ESIMD_DNS::simd_mask_storage_t<N> pred,
120120
/// otherwise,
121121
/// N = roundUpNextMultiple(BlockHeight, 4 / sizeof(T)) *
122122
/// getNextPowerOf2(BlockWidth) * NBlocks
123-
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L3H,
123+
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L2H,
124124
__ESIMD_ENS::lsc_data_size DS,
125125
__ESIMD_EDNS::lsc_data_order _Transposed, uint8_t NBlocks,
126126
int BlockWidth, int BlockHeight, bool Transformed, int N>
@@ -136,7 +136,7 @@ __esimd_lsc_load2d_stateless(__ESIMD_DNS::simd_mask_storage_t<N> Pred,
136136
///
137137
/// @tparam Ty is element type.
138138
/// @tparam L1H is L1 cache hint.
139-
/// @tparam L3H is L3 cache hint.
139+
/// @tparam L2H is L2 cache hint.
140140
/// @tparam DS is the data size.
141141
/// @tparam NBlocks is the number of blocks.
142142
/// @tparam Transposed is the transposed version or not.
@@ -153,7 +153,7 @@ __esimd_lsc_load2d_stateless(__ESIMD_DNS::simd_mask_storage_t<N> Pred,
153153
/// number of elements.
154154
/// @param Y is zero based Y-coordinate of the left upper rectangle corner in
155155
/// rows.
156-
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L3H,
156+
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L2H,
157157
__ESIMD_ENS::lsc_data_size DS,
158158
__ESIMD_EDNS::lsc_data_order _Transposed, uint8_t NBlocks,
159159
int BlockWidth, int BlockHeight, bool Transformed, int N>
@@ -168,7 +168,7 @@ __ESIMD_INTRIN void __esimd_lsc_prefetch2d_stateless(
168168
///
169169
/// @tparam Ty is element type.
170170
/// @tparam L1H is L1 cache hint.
171-
/// @tparam L3H is L3 cache hint.
171+
/// @tparam L2H is L2 cache hint.
172172
/// @tparam DS is the data size.
173173
/// @tparam Transposed is the transposed version or not.
174174
/// @tparam NBlocks is the number of blocks.
@@ -190,7 +190,7 @@ __ESIMD_INTRIN void __esimd_lsc_prefetch2d_stateless(
190190
/// otherwise,
191191
/// N = roundUpNextMultiple(BlockHeight, 4 / sizeof(T)) *
192192
/// getNextPowerOf2(BlockWidth) * NBlocks
193-
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L3H,
193+
template <typename Ty, __ESIMD_ENS::cache_hint L1H, __ESIMD_ENS::cache_hint L2H,
194194
__ESIMD_ENS::lsc_data_size DS,
195195
__ESIMD_EDNS::lsc_data_order _Transposed, uint8_t NBlocks,
196196
int BlockWidth, int BlockHeight, bool Transformed, int N>

0 commit comments

Comments
 (0)