Use equivalents for the last calls to the Runtime API.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
libomptarget/plugins/cuda/src/rtl.cpp | ||
---|---|---|
691–692 ↗ | (On Diff #131956) | This assertion is guaranteed to trip - it's inside an if (sync_err != CUDA_SUCCESS) - so it doesn't make sense to have it. Besides, if kernel execution fails, the plugin should just return OFFLOAD_FAIL to the parent runtime, not terminate the program. |
libomptarget/plugins/cuda/src/rtl.cpp | ||
---|---|---|
691–692 ↗ | (On Diff #131956) | I know, I was just mimicking the same behavior of the previous if statement. If that's not what we want, we should probably remove the first assert as well. |
libomptarget/plugins/cuda/src/rtl.cpp | ||
---|---|---|
691–692 ↗ | (On Diff #131956) | Right, the previous assertion must be removed, it shouldn't be there. |