Commit 6636103
authored
[ESIMD] Fix saturation argument of DPAS (#6647)
* [ESIMD] Fix saturation argument of DPAS
The template argument for saturation was declared/used such a way
that any type could be passed to it, which would cause enforcement of
saturation when not intended.
In even worse scenarios the DPAS call with 3 simd arguments was
recognized as DPAS with 2 simd arguments + saturation argument:
dpas(src0,src1,src2) was treated as dpas(src1,src2,sat),
which caused totally incorrect behavior at runtime.
Also, this patch fixes the incorrect detection of ops_per_channel for
tfloat32 type on HOST.
Signed-off-by: Vyacheslav N Klochkov <[email protected]>1 parent 1660a61 commit 6636103
File tree
3 files changed
+26
-22
lines changed- sycl/include/sycl/ext/intel
- esimd
- experimental/esimd
- detail
3 files changed
+26
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
68 | 78 | | |
69 | 79 | | |
70 | 80 | | |
| |||
Lines changed: 4 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
459 | | - | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | 454 | | |
468 | 455 | | |
469 | 456 | | |
470 | 457 | | |
471 | 458 | | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
472 | 463 | | |
473 | 464 | | |
474 | 465 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1761 | 1761 | | |
1762 | 1762 | | |
1763 | 1763 | | |
1764 | | - | |
| 1764 | + | |
| 1765 | + | |
1765 | 1766 | | |
1766 | 1767 | | |
1767 | 1768 | | |
| |||
1894 | 1895 | | |
1895 | 1896 | | |
1896 | 1897 | | |
1897 | | - | |
| 1898 | + | |
| 1899 | + | |
1898 | 1900 | | |
1899 | 1901 | | |
1900 | 1902 | | |
| |||
1911 | 1913 | | |
1912 | 1914 | | |
1913 | 1915 | | |
1914 | | - | |
1915 | | - | |
1916 | | - | |
| 1916 | + | |
| 1917 | + | |
| 1918 | + | |
1917 | 1919 | | |
1918 | 1920 | | |
1919 | 1921 | | |
| |||
1976 | 1978 | | |
1977 | 1979 | | |
1978 | 1980 | | |
1979 | | - | |
| 1981 | + | |
| 1982 | + | |
1980 | 1983 | | |
1981 | 1984 | | |
1982 | 1985 | | |
| |||
2048 | 2051 | | |
2049 | 2052 | | |
2050 | 2053 | | |
2051 | | - | |
2052 | | - | |
2053 | | - | |
| 2054 | + | |
| 2055 | + | |
| 2056 | + | |
2054 | 2057 | | |
2055 | 2058 | | |
2056 | 2059 | | |
| |||
0 commit comments