Intel® oneAPI DPC++/C++ Compiler
Talk to fellow users of Intel® oneAPI DPC++/C++ Compiler and companion tools like Intel® oneAPI DPC++ Library, Intel® DPC++ Compatibility Tool, and Intel® Distribution for GDB*
698 Discussions

How to force errors to test asynchronous exception handler with Iris Xe

MikeDB
Novice
243 Views

Hi,

 

I'd like to test my asychronous exception handler passed to the sycl::queue constructor.

 

However I can't get my SYCL kernels to generate errors with invalid memory access, divide by zero, double precision maths etc. GPU kernels never seem to throw errors, though the results are wrong of course so presumably execution is just quietly terminated.

 

How can I force my kernel to generate an error running on Iris Xe GPU to test my exception handler?

 

Thanks.

 

0 Kudos
1 Reply
Alex_Y_Intel
Moderator
48 Views

The error you get from the asynchronous handler exception for GPU is limited, mostly just lets you know that there's an exception from GPU happens. 

0 Kudos
Reply