Commit 6042d3a
authored
[SYCL][ROCm] Fix context destruction on AMD (#4104)
What this piece of code is doing is making the context being destroyed
"current" by pushing it, so that it can be synchronized, and then
popping it.
However on AMD the synchronization is not supported, nor necessary, so
these steps can be skipped. In addition this was causing issues because
on AMD it uses a single context under the hood so `hipCtxt == current`
is always true, which means that this piece of code was popping the
context without pushing it first which would return an error code.
Simply skipping this step on AMD should be fine.1 parent af2bf96 commit 6042d3a
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1696 | 1696 | | |
1697 | 1697 | | |
1698 | 1698 | | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
1699 | 1702 | | |
1700 | 1703 | | |
1701 | 1704 | | |
1702 | 1705 | | |
1703 | 1706 | | |
1704 | | - | |
1705 | | - | |
| 1707 | + | |
1706 | 1708 | | |
1707 | 1709 | | |
1708 | 1710 | | |
1709 | 1711 | | |
| 1712 | + | |
1710 | 1713 | | |
1711 | 1714 | | |
1712 | 1715 | | |
| |||
0 commit comments