Commit 9d9ecdb
[xpu][feature] Enable triton online softmax kernels on XPU. (pytorch#163251)
This pr is to enable triton online softmax kernels for xpu devices, so we add a device check in prepare_softmax_extra_check.
Pull Request resolved: pytorch#163251
Approved by: https://github.com/etaf, https://github.com/EikanWang, https://github.com/mlazos1 parent d24276f commit 9d9ecdb
1 file changed
+9
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
141 | 147 | | |
142 | | - | |
| 148 | + | |
143 | 149 | | |
144 | 150 | | |
145 | 151 | | |
| |||
310 | 316 | | |
311 | 317 | | |
312 | 318 | | |
313 | | - | |
| 319 | + | |
314 | 320 | | |
0 commit comments