Software Archive
Read-only legacy content
17061 Discussions

fortran and semicolon at end of line

Alin_M_Elena
Beginner
851 Views

HI there,

I was playing around with a simple offload code and I discovered that the program was keep crashing claiming there is no offload entry. (see source attached).

[alin@phinally:~/lavello/XeonPhi/hello/fortran]: ./semicolon.MIX 
x = 100
x = 101 i = 101
offload error: cannot find offload entry __offload_entry_semicolon_F90_31MAIN__
x = 101 i = 101
offload status: 4
offload device: 0
offload data (sent in B): 4
offload data (received in B): 0

after removing the semicolon on line 12 everthing seems to run as expected

[alin@phinally:~/lavello/XeonPhi/hello/fortran]: ./semicolon.MIX 
x = 100
x = 101 i = 101
x = 103 i = 103
offload status: 0
offload device: 0
offload data (sent in B): 4
offload data (received in B): 8

regards,

Alin

0 Kudos
2 Replies
Kevin_D_Intel
Employee
851 Views

Hi Alin. What an interesting case. Sorry for the trouble that must have caused. I reproduced this, reported it to the Fortran Front-end team (see internal tracking below), and will update the post about a fix as I learn it.

(Internal tracking id: DPD200247866)

0 Kudos
Alin_M_Elena
Beginner
851 Views

Thank you Kevin! Indeed was tricky one to figure out, however gave me the chance to read in detail the offload part of the manual.

regards,

Alin

0 Kudos
Reply