Skip to content

Commit 91e8364

Browse files
authored
[SYCL][ESIMD][ABI-Break] Remove deprecated APIs (#9948)
1 parent bf3d580 commit 91e8364

File tree

15 files changed

+18
-883
lines changed

15 files changed

+18
-883
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,8 @@ enum class atomic_op : uint8_t {
153153
dec = 0x3,
154154
/// Minimum: <code>*addr = min(*addr, src0)</code>.
155155
umin = 0x4,
156-
min __SYCL_DEPRECATED("use umin") = umin,
157156
/// Maximum: <code>*addr = max(*addr, src0)</code>.
158157
umax = 0x5,
159-
max __SYCL_DEPRECATED("use smax") = umax,
160158
/// Exchange. <code>*addr == src0;</code>
161159
xchg = 0x6,
162160
/// Compare and exchange. <code>if (*addr == src0) *sddr = src1;</code>
@@ -169,10 +167,8 @@ enum class atomic_op : uint8_t {
169167
bit_xor = 0xa,
170168
/// Minimum (signed integer): <code>*addr = min(*addr, src0)</code>.
171169
smin = 0xb,
172-
minsint __SYCL_DEPRECATED("use smin") = smin,
173170
/// Maximum (signed integer): <code>*addr = max(*addr, src0)</code>.
174171
smax = 0xc,
175-
maxsint __SYCL_DEPRECATED("use smax") = 0xc,
176172
/// Minimum (floating point): <code>*addr = min(*addr, src0)</code>.
177173
fmax __SYCL_DEPRECATED("fmax" __ESIMD_USM_DWORD_ATOMIC_TO_LSC) = 0x10,
178174
/// Maximum (floating point): <code>*addr = max(*addr, src0)</code>.

sycl/include/sycl/ext/intel/esimd/detail/simd_obj_impl.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -377,12 +377,6 @@ class simd_obj_impl {
377377
/// with l-value contexts in inline assembly.
378378
raw_vector_type &data_ref() { return M_data; }
379379

380-
/// Commit the current stored underlying raw vector to memory.
381-
/// This is required when using inline assembly with private global variables.
382-
__SYCL_DEPRECATED(
383-
"commit is deprecated and will be removed in a future release")
384-
void commit() {}
385-
386380
/// @return Newly constructed (from the underlying data) object of the Derived
387381
/// type.
388382
Derived read() const { return Derived{data()}; }

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

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -740,17 +740,6 @@ gather_rgba(const T *p, Toffset offset, simd_mask<N> mask = 1) {
740740
return gather_rgba<RGBAMask, T, N>(p, simd<Toffset, N>(offset), mask);
741741
}
742742

743-
template <typename T, int N, rgba_channel_mask RGBAMask>
744-
__SYCL_DEPRECATED("use gather_rgba<rgba_channel_mask>()")
745-
__ESIMD_API std::enable_if_t<
746-
(N == 8 || N == 16 || N == 32) && sizeof(T) == 4,
747-
simd<T, N * get_num_channels_enabled(
748-
RGBAMask)>> gather_rgba(const T *p,
749-
simd<uint32_t, N> offsets,
750-
simd_mask<N> mask = 1) {
751-
return gather_rgba<RGBAMask>(p, offsets, mask);
752-
}
753-
754743
namespace detail {
755744
template <rgba_channel_mask M> static void validate_rgba_write_channel_mask() {
756745
using CM = rgba_channel_mask;

sycl/include/sycl/ext/intel/esimd/xmx/common.hpp

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,17 @@ namespace ext::intel::esimd::xmx {
2121
/// it is deducible from the element types of input matrices.
2222
enum class dpas_argument_type {
2323
Invalid = 0,
24-
u1 = 1, // unsigned 1 bit
25-
U1 __SYCL_DEPRECATED("use u1") = u1,
26-
s1 = 2, // signed 1 bit
27-
S1 __SYCL_DEPRECATED("use s1") = s1,
28-
u2 = 3, // unsigned 2 bits
29-
U2 __SYCL_DEPRECATED("use u2") = u2,
30-
s2 = 4, // signed 2 bits
31-
S2 __SYCL_DEPRECATED("use s2") = s2,
32-
u4 = 5, // unsigned 4 bits
33-
U4 __SYCL_DEPRECATED("use u4") = u4,
34-
s4 = 6, // signed 4 bits
35-
S4 __SYCL_DEPRECATED("use s4") = s4,
36-
u8 = 7, // unsigned 8 bits
37-
U8 __SYCL_DEPRECATED("use u8") = u8,
38-
s8 = 8, // signed 8 bits
39-
S8 __SYCL_DEPRECATED("use s8") = s8,
40-
bf16 = 9, // bfloat 16
41-
BF16 __SYCL_DEPRECATED("use bf16") = bf16,
24+
u1 = 1, // unsigned 1 bit
25+
s1 = 2, // signed 1 bit
26+
u2 = 3, // unsigned 2 bits
27+
s2 = 4, // signed 2 bits
28+
u4 = 5, // unsigned 4 bits
29+
s4 = 6, // signed 4 bits
30+
u8 = 7, // unsigned 8 bits
31+
s8 = 8, // signed 8 bits
32+
bf16 = 9, // bfloat 16
4233
fp16 = 10, // half float
43-
FP16 __SYCL_DEPRECATED("use fp16") = fp16,
4434
tf32 = 12, // tensorfloat 32
45-
TF32 __SYCL_DEPRECATED("use tf32") = tf32
4635
};
4736

4837
} // namespace ext::intel::esimd::xmx

sycl/include/sycl/ext/intel/experimental/esimd/common.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,6 @@ namespace ext::intel::experimental::esimd {
2424
/// @addtogroup sycl_esimd_core
2525
/// @{
2626

27-
using argument_type
28-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::xmx::dpas_argument_type") =
29-
__ESIMD_NS::xmx::dpas_argument_type;
30-
3127
/// The scope that lsc_fence operation should apply to
3228
/// Supported platforms: DG2, PVC
3329
enum class lsc_scope : uint8_t {

sycl/include/sycl/ext/intel/experimental/esimd/math.hpp

Lines changed: 0 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1664,143 +1664,6 @@ __ESIMD_NS::simd<T, N> dp4(__ESIMD_NS::simd<T, N> v1,
16641664
/// APIs below are used to implement dot product accumulate systolic functions
16651665
/// @ingroup sycl_esimd
16661666

1667-
/// @addtogroup sycl_esimd_systolic_array_api
1668-
/// @{
1669-
/// DPAS
1670-
/// @param src0 is the source operand that represents accumulator for the dpas
1671-
/// function
1672-
/// @param src1 is the first source perand with data precision type specified
1673-
/// by src1_precision.
1674-
/// @param src2 is the second source operand with data precision type specified
1675-
/// by src2_precision.
1676-
/// @param sat enables/disables the saturation (off by default). Possible
1677-
/// values: saturation_on/saturation_off.
1678-
/// @return the vector value of DPAS computation result.
1679-
template <argument_type src1_precision, argument_type src2_precision,
1680-
typename T, int systolic_depth, int repeat_count, typename T0,
1681-
typename T1, typename T2, int N, int N1, int N2,
1682-
typename Sat = __ESIMD_NS::saturation_off_tag>
1683-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::native::dpas()")
1684-
__ESIMD_API __ESIMD_NS::simd<T, N> dpas(
1685-
__ESIMD_NS::simd<T0, N> src0, __ESIMD_NS::simd<T1, N1> src1,
1686-
__ESIMD_NS::simd<T2, N2> src2,
1687-
std::enable_if_t<__ESIMD_DNS::is_saturation_tag_v<Sat>, Sat> sat = {}) {
1688-
auto result =
1689-
__ESIMD_NS::xmx::dpas<systolic_depth, repeat_count, T, T0, T1, T2,
1690-
src1_precision, src2_precision>(src0, src1, src2);
1691-
if constexpr (std::is_same_v<Sat, __ESIMD_NS::saturation_off_tag>)
1692-
return result;
1693-
else
1694-
return __ESIMD_NS::saturate<T>(result);
1695-
}
1696-
1697-
/// DPAS
1698-
/// @param src0 is the source operand that represents accumulator for the dpas
1699-
/// function, which must have the same type as return value
1700-
/// @param src1 is the first source perand with data precision type specified
1701-
/// by src1_precision.
1702-
/// @param src2 is the second source operand with data precision type specified
1703-
/// by src2_precision.
1704-
/// @param sat enables/disables the saturation (off by default). Possible
1705-
/// values: saturation_on/saturation_off.
1706-
/// @return the vector value of DPAS computation result.
1707-
template <argument_type src1_precision, argument_type src2_precision,
1708-
int systolic_depth, int repeat_count, typename T, typename T1,
1709-
typename T2, int N, int N1, int N2,
1710-
typename Sat = __ESIMD_NS::saturation_off_tag>
1711-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::xmx::dpas()")
1712-
__ESIMD_API __ESIMD_NS::simd<T, N> dpas(
1713-
__ESIMD_NS::simd<T, N> src0, __ESIMD_NS::simd<T1, N1> src1,
1714-
__ESIMD_NS::simd<T2, N2> src2,
1715-
std::enable_if_t<__ESIMD_DNS::is_saturation_tag_v<Sat>, Sat> sat = {}) {
1716-
return dpas<src1_precision, src2_precision, T, systolic_depth, repeat_count>(
1717-
src0, src1, src2, sat);
1718-
}
1719-
1720-
/// DPAS
1721-
/// @param src1 is the first source perand with data precision type specified
1722-
/// by src1_precision.
1723-
/// @param src2 is the second source operand with data precision type specified
1724-
/// by src2_precision.
1725-
/// @param sat enables/disables the saturation (off by default). Possible
1726-
/// values: saturation_on/saturation_off.
1727-
/// @return the vector value of DPAS computation result.
1728-
template <argument_type src1_precision, argument_type src2_precision,
1729-
int systolic_depth, int repeat_count, typename T, typename T1,
1730-
typename T2, int N, int N1, int N2,
1731-
typename Sat = __ESIMD_NS::saturation_off_tag>
1732-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::xmx::dpas()")
1733-
__ESIMD_API __ESIMD_NS::simd<T, N> dpas(
1734-
__ESIMD_NS::simd<T1, N1> src1, __ESIMD_NS::simd<T2, N2> src2,
1735-
std::enable_if_t<__ESIMD_DNS::is_saturation_tag_v<Sat>, Sat> sat = {}) {
1736-
1737-
__ESIMD_NS::simd<T, N> result =
1738-
__ESIMD_NS::xmx::dpas<systolic_depth, repeat_count, T, T1, T2,
1739-
src1_precision, src2_precision>(src1, src2);
1740-
1741-
if constexpr (std::is_same_v<Sat, __ESIMD_NS::saturation_off_tag>)
1742-
return result;
1743-
else
1744-
return __ESIMD_NS::saturate<T>(result);
1745-
}
1746-
1747-
/// DPASW
1748-
/// @param src0 is the source operand that represents accumulator for the dpas
1749-
/// function, which must have the same type as return value.
1750-
/// @param src1 is the first source perand with data precision type specified
1751-
/// by src1_precision.
1752-
/// @param src2 is the second source operand with data precision type specified
1753-
/// by src2_precision.
1754-
/// @param sat enables/disables the saturation (off by default). Possible
1755-
/// values: saturation_on/saturation_off.
1756-
/// @return the vector value of DPAS computation result.
1757-
template <argument_type src1_precision, argument_type src2_precision,
1758-
int systolic_depth, int repeat_count, typename T, typename T1,
1759-
typename T2, int N, int N1, int N2,
1760-
typename Sat = __ESIMD_NS::saturation_off_tag>
1761-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::xmx::dpasw()")
1762-
__ESIMD_API __ESIMD_NS::simd<T, N> dpasw(
1763-
__ESIMD_NS::simd<T, N> src0, __ESIMD_NS::simd<T1, N1> src1,
1764-
__ESIMD_NS::simd<T2, N2> src2,
1765-
std::enable_if_t<__ESIMD_DNS::is_saturation_tag_v<Sat>, Sat> sat = {}) {
1766-
1767-
__ESIMD_NS::simd<T, N> result =
1768-
__ESIMD_NS::xmx::dpasw<systolic_depth, repeat_count, T, T1, T2,
1769-
src1_precision, src2_precision>(src0, src1, src2);
1770-
if constexpr (std::is_same_v<Sat, __ESIMD_NS::saturation_off_tag>)
1771-
return result;
1772-
else
1773-
return __ESIMD_NS::saturate<T>(result);
1774-
}
1775-
1776-
/// DPASW2
1777-
/// @param src1 is the first source perand with data precision type specified
1778-
/// by src1_precision.
1779-
/// @param src2 is the second source operand with data precision type specified
1780-
/// by src2_precision.
1781-
/// @param sat enables/disables the saturation (off by default). Possible
1782-
/// values: saturation_on/saturation_off.
1783-
/// @return the vector value of DPAS computation result.
1784-
template <argument_type src1_precision, argument_type src2_precision,
1785-
int systolic_depth, int repeat_count, typename T, typename T1,
1786-
typename T2, int N, int N1, int N2,
1787-
typename Sat = __ESIMD_NS::saturation_off_tag>
1788-
__SYCL_DEPRECATED("use sycl::ext::intel::esimd::xmx::dpasw()")
1789-
__ESIMD_API __ESIMD_NS::simd<T, N> dpasw2(
1790-
__ESIMD_NS::simd<T1, N1> src1, __ESIMD_NS::simd<T2, N2> src2,
1791-
std::enable_if_t<__ESIMD_DNS::is_saturation_tag_v<Sat>, Sat> sat = {}) {
1792-
1793-
__ESIMD_NS::simd<T, N> result =
1794-
__ESIMD_NS::xmx::dpasw<systolic_depth, repeat_count, T, T1, T2,
1795-
src1_precision, src2_precision>(src1, src2);
1796-
1797-
if constexpr (std::is_same_v<Sat, __ESIMD_NS::saturation_off_tag>)
1798-
return result;
1799-
else
1800-
return __ESIMD_NS::saturate<T>(result);
1801-
}
1802-
/// @} sycl_esimd_systolic_array_api
1803-
18041667
/// @addtogroup sycl_esimd_logical
18051668
/// @{
18061669

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

Lines changed: 0 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -92,19 +92,6 @@ raw_sends(__ESIMD_NS::simd<T1, n1> msgDst, __ESIMD_NS::simd<T2, n2> msgSrc0,
9292
msgDesc, msgSrc0.data(), msgSrc1.data(), msgDst.data());
9393
}
9494

95-
template <typename T1, int n1, typename T2, int n2, typename T3, int n3,
96-
int N = 16>
97-
__SYCL_DEPRECATED("raw_sends_load is deprecated. Use raw_sends")
98-
__ESIMD_API __ESIMD_NS::simd<T1, n1> raw_sends_load(
99-
__ESIMD_NS::simd<T1, n1> msgDst, __ESIMD_NS::simd<T2, n2> msgSrc0,
100-
__ESIMD_NS::simd<T3, n3> msgSrc1, uint32_t exDesc, uint32_t msgDesc,
101-
uint8_t execSize, uint8_t sfid, uint8_t numSrc0, uint8_t numSrc1,
102-
uint8_t numDst, uint8_t isEOT = 0, uint8_t isSendc = 0,
103-
__ESIMD_NS::simd_mask<N> mask = 1) {
104-
return raw_sends(msgDst, msgSrc0, msgSrc1, exDesc, msgDesc, execSize, sfid,
105-
numSrc0, numSrc1, numDst, isEOT, isSendc);
106-
}
107-
10895
/// Raw send.
10996
///
11097
/// @param msgDst is the old value of the destination operand.
@@ -146,17 +133,6 @@ raw_send(__ESIMD_NS::simd<T1, n1> msgDst, __ESIMD_NS::simd<T2, n2> msgSrc0,
146133
msgSrc0.data(), msgDst.data());
147134
}
148135

149-
template <typename T1, int n1, typename T2, int n2, int N = 16>
150-
__SYCL_DEPRECATED("raw_send_load is deprecated. Use raw_send")
151-
__ESIMD_API __ESIMD_NS::simd<T1, n1> raw_send_load(
152-
__ESIMD_NS::simd<T1, n1> msgDst, __ESIMD_NS::simd<T2, n2> msgSrc0,
153-
uint32_t exDesc, uint32_t msgDesc, uint8_t execSize, uint8_t sfid,
154-
uint8_t numSrc0, uint8_t numDst, uint8_t isEOT = 0, uint8_t isSendc = 0,
155-
__ESIMD_NS::simd_mask<N> mask = 1) {
156-
return raw_send(msgDst, msgSrc0, exDesc, msgDesc, execSize, sfid, numSrc0,
157-
numDst, isEOT, isSendc, mask);
158-
}
159-
160136
/// Raw sends. "s" suffix designates "split" variant - i.e. two sources.
161137
///
162138
/// @param msgSrc0 is the first source operand of send message.
@@ -197,19 +173,6 @@ raw_sends(__ESIMD_NS::simd<T1, n1> msgSrc0, __ESIMD_NS::simd<T2, n2> msgSrc1,
197173
msgSrc0.data(), msgSrc1.data());
198174
}
199175

200-
template <typename T1, int n1, typename T2, int n2, int N = 16>
201-
__SYCL_DEPRECATED("raw_sends_store is deprecated. Use raw_sends")
202-
__ESIMD_API
203-
void raw_sends_store(__ESIMD_NS::simd<T1, n1> msgSrc0,
204-
__ESIMD_NS::simd<T2, n2> msgSrc1, uint32_t exDesc,
205-
uint32_t msgDesc, uint8_t execSize, uint8_t sfid,
206-
uint8_t numSrc0, uint8_t numSrc1, uint8_t isEOT = 0,
207-
uint8_t isSendc = 0,
208-
__ESIMD_NS::simd_mask<N> mask = 1) {
209-
raw_sends(msgSrc0, msgSrc1, exDesc, msgDesc, execSize, sfid, numSrc0, numSrc1,
210-
isEOT, isSendc, mask);
211-
}
212-
213176
/// Raw send. Generates a \c send or \c sendc instruction for the message
214177
/// gateway.
215178
///
@@ -242,17 +205,6 @@ raw_send(__ESIMD_NS::simd<T1, n1> msgSrc0, uint32_t exDesc, uint32_t msgDesc,
242205
msgSrc0.data());
243206
}
244207

245-
template <typename T1, int n1, int N = 16>
246-
__SYCL_DEPRECATED("raw_send_store is deprecated. Use raw_send")
247-
__ESIMD_API
248-
void raw_send_store(__ESIMD_NS::simd<T1, n1> msgSrc0, uint32_t exDesc,
249-
uint32_t msgDesc, uint8_t execSize, uint8_t sfid,
250-
uint8_t numSrc0, uint8_t isEOT = 0, uint8_t isSendc = 0,
251-
__ESIMD_NS::simd_mask<N> mask = 1) {
252-
raw_send(msgSrc0, exDesc, msgDesc, execSize, sfid, numSrc0, isEOT, isSendc,
253-
mask);
254-
}
255-
256208
/// @} sycl_esimd_raw_send
257209

258210
#endif // !__ESIMD_FORCE_STATELESS_MEM
@@ -2309,22 +2261,6 @@ lsc_load_2d(const T *Ptr, unsigned SurfaceWidth, unsigned SurfaceHeight,
23092261
}
23102262
}
23112263

2312-
template <typename T, int BlockWidth, int BlockHeight = 1, int NBlocks = 1,
2313-
bool Transposed = false, bool Transformed = false,
2314-
cache_hint L1H = cache_hint::none, cache_hint L3H = cache_hint::none,
2315-
int N = detail::get_lsc_block_2d_data_size<
2316-
T, NBlocks, BlockHeight, BlockWidth, Transposed, Transformed>()>
2317-
__SYCL_DEPRECATED("use lsc_load_2d()")
2318-
__ESIMD_API __ESIMD_NS::simd<T, N> lsc_load2d(const T *Ptr,
2319-
unsigned SurfaceWidth,
2320-
unsigned SurfaceHeight,
2321-
unsigned SurfacePitch, int X,
2322-
int Y) {
2323-
return lsc_load_2d<T, BlockWidth, BlockHeight, NBlocks, Transposed,
2324-
Transformed, L1H, L3H>(Ptr, SurfaceWidth, SurfaceHeight,
2325-
SurfacePitch, X, Y);
2326-
}
2327-
23282264
/// 2D USM pointer block prefetch.
23292265
/// Supported platforms: PVC
23302266
/// VISA instruction: lsc_load_block2d.ugm
@@ -2368,17 +2304,6 @@ __ESIMD_API void lsc_prefetch_2d(const T *Ptr, unsigned SurfaceWidth,
23682304
pred.data(), surf_addr, SurfaceWidth, SurfaceHeight, SurfacePitch, X, Y);
23692305
}
23702306

2371-
template <typename T, int BlockWidth, int BlockHeight = 1, int NBlocks = 1,
2372-
cache_hint L1H = cache_hint::none, cache_hint L3H = cache_hint::none,
2373-
int N = detail::get_lsc_block_2d_data_size<
2374-
T, NBlocks, BlockHeight, BlockWidth, false, false>()>
2375-
__SYCL_DEPRECATED("use lsc_prefetch_2d()")
2376-
__ESIMD_API void lsc_prefetch2d(const T *Ptr, unsigned SurfaceWidth,
2377-
unsigned SurfaceHeight, unsigned SurfacePitch,
2378-
int X, int Y) {
2379-
lsc_prefetch_2d<T, BlockWidth, BlockHeight, NBlocks, L1H, L3H>(
2380-
Ptr, SurfaceWidth, SurfaceHeight, SurfacePitch, X, Y);
2381-
}
23822307
/// 2D USM pointer block store.
23832308
/// Supported platforms: PVC
23842309
/// VISA instruction: lsc_store_block2d.ugm
@@ -2439,18 +2364,6 @@ __ESIMD_API void lsc_store_2d(T *Ptr, unsigned SurfaceWidth,
24392364
Raw.data());
24402365
}
24412366

2442-
template <typename T, int BlockWidth, int BlockHeight = 1,
2443-
cache_hint L1H = cache_hint::none, cache_hint L3H = cache_hint::none,
2444-
int N = detail::get_lsc_block_2d_data_size<
2445-
T, 1u, BlockHeight, BlockWidth, false, false>()>
2446-
__SYCL_DEPRECATED("use lsc_store_2d()")
2447-
__ESIMD_API void lsc_store2d(T *Ptr, unsigned SurfaceWidth,
2448-
unsigned SurfaceHeight, unsigned SurfacePitch,
2449-
int X, int Y, __ESIMD_NS::simd<T, N> Vals) {
2450-
lsc_store_2d<T, BlockWidth, BlockHeight, L1H, L3H>(
2451-
Ptr, SurfaceWidth, SurfaceHeight, SurfacePitch, X, Y, Vals);
2452-
}
2453-
24542367
/// <summary>
24552368
/// Container class to hold parameters for \c load2d/store2d \c functions
24562369
/// </summary>

0 commit comments

Comments
 (0)