- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In my C++ program, I use some public functions of some classes in the offload region.I use the statement __attribute ((target(mic))) before the functions. But I found that the program crushed when it goes through the offload regions which use public functions of classes.
So I wonder that if there are some special things to care when I use functions of a class? Is my way correct?
Thank you very much.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My understanding is that classes are all-or-nothing. The entire class needs to be marked for offload, even if you are only using a few methods in it.
Charles

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