- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) I have only one coprocessor, then "offload target(mic)" is same as "offload target(mic:0)"?
2) I specify only fortran arrays inside "in/out/inout" for the offloaded openmp parallel region, do variables used inside that region also need to be explicitly specified inside the "in/out/inout"? Or are they implicitly put inside the "in"? thanks.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
forgot to tell that in 2) I won't need those variables back. thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
1) Yes
2) Variables the compiler sees within the lexical scope of the offload code are implicitly transferred by default with INOUT so add them to an explicit IN to avoid transferring their values back to the host at the conclusion of the offload code block.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!

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