- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have compiled my program "a.f", which contains the subroutine asub, with -qoffload-attribute-target=mic. Now in another file "b.f", inside the "!dir$offload target (mic)" I call this "asub". But in front of (before the line) "call asub" in "b.f" I do not put the "!dir$ offload attributes target:mic:asub". Everything seems to compile fine, and offload report gives me information on the offloaded region. I just wanted to make sure, is there anything to worry that I did not put "!dir$ offload target:mic:asub" in "b.f" or not? Thanks!
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There's nothing to worry about in the scenario you describe. The compilation of a.f is what creates the instance of the routine in the offload image for which the call in b.f depends. The warning issued when compiling b.f in the absence of the directive you mention will not affect the program's behavior. As you know, you can silence that warning adding the directive you mention.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Kevin!

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