Commit c5c0be5
authored
[UR][CUDA][HIP] Add missing catch for native commands (intel#17524)
This UR entry point calls a user function pointer, which may throw
exceptions so we need an exception catchall there to ensure they don't
cross the UR C API boundary.
It's unclear if exceptions should even be allowed in these user
functions, but this is still a worthwhile precaution.1 parent 270bb93 commit c5c0be5
File tree
2 files changed
+4
-0
lines changed- unified-runtime/source/adapters
- cuda
- hip
2 files changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
58 | 60 | | |
59 | 61 | | |
60 | 62 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
0 commit comments