Skip to content

Catch a PI CUDA ERROR in try catch block? #14160

Closed Answered by GeorgeWeb
Aympab asked this question in Q&A
Discussion options

You must be logged in to vote

This seems to be regarding an old build of DPC++ / intel/llvm just by looking at the reported error above. For example, Source Location points to pi_cuda.cpp:3186. All errors are propagated up the stack from the backend adapters and thrown as exceptions by the SYCL runtime. I've tried to reproduce the scenario described above ("When running with a too large size for the y-dimension of the CUDA grid, I get this plugin interface error") using the latest intel/llvm -> sycl branch and I am able to catch the exception just fine.

constexpr const size_t Dim = 3;
try {
  q.submit([&](handler &cgh) {
     cgh.parallel_for<class TestDim>(
         nd_range<Dim>(range<Dim>(1, std::numeric_limits<int…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@JackAKirk
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by npmiller
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants