- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page