wrong offload tag code

wrong offload tag code

Hi,

in the document listed here (the documentation for the latest intel fortran compiler 13.1.3)

http://software.intel.com/en-us/node/413108#30B8C09D-9EC7-401B-8CFC-E4FC...
the code listed after (practically the last code there)
The following example demonstrates the tag argument:

contains two mistakes:
1. prevents the code to compile due to two stray #endif in the code

2. uses uninitialised values for gtag and ktag
this makes the resulting code to crash with the following message

[aelena00@node005 fortran]$ ifort -o offloadTags.MIX offloadTags.F90
[aelena00@node005 fortran]$ ./offloadTags.MIX
offload error: device 0 does not have a pending signal for wait(0xffffffffdeda6cd2)
forrtl: error (76): Abort trap signal
Image PC Routine Line Source
libc.so.6 00000036186328A5 Unknown Unknown Unknown
libc.so.6 0000003618634085 Unknown Unknown Unknown
liboffload.so.5 00007F7641690F1E Unknown Unknown Unknown
liboffload.so.5 00007F764169A80D Unknown Unknown Unknown
offloadTags.MIX 000000000040395C Unknown Unknown Unknown
offloadTags.MIX 0000000000403772 Unknown Unknown Unknown
offloadTags.MIX 000000000040370C Unknown Unknown Unknown
libc.so.6 000000361861ECDD Unknown Unknown Unknown
offloadTags.MIX 0000000000403599 Unknown Unknown Unknown
Aborted (core dumped)
[aelena00@node005 fortran]$ ifort -o offloadTags.MIX offloadTags.F90 -DdoGLOB
[aelena00@node005 fortran]$ ./offloadTags.MIX
offload error: device 0 does not have a pending signal for wait((nil))
forrtl: error (76): Abort trap signal
Image PC Routine Line Source
libc.so.6 00000036186328A5 Unknown Unknown Unknown
libc.so.6 0000003618634085 Unknown Unknown Unknown
liboffload.so.5 00007FB889492F1E Unknown Unknown Unknown
liboffload.so.5 00007FB88949C80D Unknown Unknown Unknown
offloadTags.MIX 0000000000403960 Unknown Unknown Unknown
offloadTags.MIX 0000000000403772 Unknown Unknown Unknown
offloadTags.MIX 000000000040370C Unknown Unknown Unknown
libc.so.6 000000361861ECDD Unknown Unknown Unknown
offloadTags.MIX 0000000000403599 Unknown Unknown Unknown
Aborted (core dumped)

initialising them to some values... results in an working code

[aelena00@node005 fortran]$ ifort -o offloadTags.MIX offloadTags.F90 -DdoGLOB
[aelena00@node005 fortran]$ ./offloadTags.MIX
5.100000 5.100000 5.100000 5.100000 5.100000
5.100000 5.100000 5.100000 5.100000 5.100000
[aelena00@node005 fortran]$ ifort -o offloadTags.MIX offloadTags.F90
[aelena00@node005 fortran]$ ./offloadTags.MIX
5.100000 5.100000 5.100000 5.100000 5.100000
5.100000 5.100000 5.100000 5.100000 5.100000

regards,
Alin

I have already reported this against the documentation.

Without Questions there are no Answers!
3 Beiträge / 0 neu
Letzter Beitrag
Nähere Informationen zur Compiler-Optimierung finden Sie in unserem Optimierungshinweis.

Thank you for the note Alin. The noted mistakes in this example are fixed in the documentation for the coming Composer XE 2013 SP1 release (next month).

Thank you Kevin! Great to hear that!

Alin

Without Questions there are no Answers!

Kommentar hinterlassen

Bitte anmelden, um einen Kommentar hinzuzufügen. Sie sind noch nicht Mitglied? Jetzt teilnehmen