Software Archive
Read-only legacy content
17060 ディスカッション

offlat attribute

Jen_B_
ビギナー
1,651件の閲覧回数

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 件の賞賛
2 返答(返信)
Kevin_D_Intel
従業員
1,651件の閲覧回数

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.

Jen_B_
ビギナー
1,651件の閲覧回数

Thanks Kevin!

返信