How to abort application once error encountered in offloaded section

How to abort application once error encountered in offloaded section

Hi,

I am having a  C parallel code. In this code there is a offload section using Cilk. Memory is being asigned in shared function. I want this application get aborted gracefully when error is encountered in offloaded section. How to do it.

Regards,

abhishek

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

One of the ways you can do this is by returning a value back to host. Based on the return value the code code can continue executing or clean up and then exit the program. 

Leave a Comment

Please sign in to add a comment. Not a member? Join today