Software Archive
Read-only legacy content
17061 Discussions

offlat attribute

Jen_B_
Beginner
547 Views

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!  

0 Kudos
2 Replies
Kevin_D_Intel
Employee
547 Views

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.

0 Kudos
Jen_B_
Beginner
547 Views

Thanks Kevin!

0 Kudos
Reply