Commit 695e2cf
authored
[ESIMD] Fix inconsistencies in the ESIMD API signatures. (#4800)
This is API breaking patch.
- Remove 'esimd_' prefix from public API names. This prefix is redundant, because all APIs are in ...esimd:: namespace already. API names follow C-for-Metal naming.
- esimd_sat -> saturate
Memory access API changes:
- Un-deprecate block_load/store
- rename slm_atomic -> slm_atomic_update, flat_atomic -> atomic_update. atomic is not
used to avoid conflict with C++ atomic class
- Offset is now expected in bytes(was in elements).
(in scatter, gather, scalar_load, scalar_store)
- Make 'offsets' argument preceed the 'val' argument to be consistent with
other memory APIs.
(in scatter, scatter_rgba, slm_scatter)
- Remove unused L1 / L3 CachHint template parameters.
(in scatter, gather, scalar_load, scalar_store, scatter_rgba, gather_rgba)
- Rename enum EsimdFenceMask -> enum fence_mask and its elements (deprecate old ones)
Old behavior is preserved in deprecated APIs :
scatter->scatter1
gather->gather1
scalar_load->scalar_load1
scalar_store->scalar_store1
gather_rgba->gather4
scatter_rgba->scatter4
slm_scatter->slm_store
Signed-off-by: Konstantin S Bobrovsky konstantin.s.bobrovsky@intel.com1 parent 6b9b0eb commit 695e2cf
File tree
16 files changed
+898
-882
lines changed- sycl
- include/sycl/ext/intel/experimental/esimd
- detail
- test/esimd
- regression
16 files changed
+898
-882
lines changedLines changed: 20 additions & 20 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 20 | | |
36 | | - | |
37 | 21 | | |
38 | 22 | | |
39 | 23 | | |
| |||
43 | 27 | | |
44 | 28 | | |
45 | 29 | | |
46 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
47 | 36 | | |
48 | 37 | | |
49 | 38 | | |
50 | 39 | | |
51 | 40 | | |
52 | 41 | | |
53 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
54 | 45 | | |
55 | 46 | | |
56 | 47 | | |
| |||
70 | 61 | | |
71 | 62 | | |
72 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
237 | 239 | | |
238 | 240 | | |
239 | 241 | | |
240 | | - | |
241 | | - | |
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| |||
Lines changed: 11 additions & 29 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
| 79 | + | |
82 | 80 | | |
83 | 81 | | |
84 | 82 | | |
| |||
111 | 109 | | |
112 | 110 | | |
113 | 111 | | |
114 | | - | |
115 | | - | |
116 | | - | |
| 112 | + | |
117 | 113 | | |
118 | 114 | | |
119 | 115 | | |
| |||
144 | 140 | | |
145 | 141 | | |
146 | 142 | | |
147 | | - | |
148 | | - | |
| 143 | + | |
149 | 144 | | |
150 | 145 | | |
151 | 146 | | |
| |||
181 | 176 | | |
182 | 177 | | |
183 | 178 | | |
184 | | - | |
185 | | - | |
| 179 | + | |
186 | 180 | | |
187 | 181 | | |
188 | 182 | | |
| |||
221 | 215 | | |
222 | 216 | | |
223 | 217 | | |
224 | | - | |
225 | | - | |
226 | | - | |
| 218 | + | |
227 | 219 | | |
228 | 220 | | |
229 | 221 | | |
| |||
276 | 268 | | |
277 | 269 | | |
278 | 270 | | |
279 | | - | |
280 | | - | |
281 | | - | |
| 271 | + | |
282 | 272 | | |
283 | 273 | | |
284 | 274 | | |
| |||
351 | 341 | | |
352 | 342 | | |
353 | 343 | | |
354 | | - | |
355 | | - | |
| 344 | + | |
356 | 345 | | |
357 | 346 | | |
358 | 347 | | |
| |||
392 | 381 | | |
393 | 382 | | |
394 | 383 | | |
395 | | - | |
396 | | - | |
| 384 | + | |
397 | 385 | | |
398 | 386 | | |
399 | 387 | | |
| |||
411 | 399 | | |
412 | 400 | | |
413 | 401 | | |
414 | | - | |
415 | | - | |
416 | | - | |
| 402 | + | |
417 | 403 | | |
418 | 404 | | |
419 | 405 | | |
| |||
425 | 411 | | |
426 | 412 | | |
427 | 413 | | |
428 | | - | |
429 | | - | |
430 | | - | |
| 414 | + | |
431 | 415 | | |
432 | 416 | | |
433 | 417 | | |
| |||
440 | 424 | | |
441 | 425 | | |
442 | 426 | | |
443 | | - | |
444 | | - | |
445 | | - | |
| 427 | + | |
446 | 428 | | |
447 | 429 | | |
448 | 430 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
648 | 648 | | |
649 | 649 | | |
650 | 650 | | |
651 | | - | |
652 | | - | |
653 | | - | |
| 651 | + | |
654 | 652 | | |
655 | 653 | | |
656 | 654 | | |
| |||
691 | 689 | | |
692 | 690 | | |
693 | 691 | | |
694 | | - | |
| 692 | + | |
695 | 693 | | |
696 | 694 | | |
697 | 695 | | |
| |||
0 commit comments