Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
7 Views

ifort -coarray=shared produces incorrect exit status

If I compile and run

  print*, 1/0
end program

with ifort then I get a division by zero error with an exit status of 2 (echo $?), as expected. However, If I compile using ifort -coarray=shared then I still get the error but now the exit status is 0. Is this a compiler bug? Each image seems to produce the correct exit code, but the exit code somehow doesn't propagate through the wrapper executable which launches the MPI processes.

Here's the long version of the problem: http://stackoverflow.com/questions/25912031/ifort-coarray-shared-produces-incorrect-exit-status

Thanks

0 Kudos
4 Replies
Highlighted
7 Views

I don't consider this a bug.

I don't consider this a bug. What should happen if image 1 exits with status 3 and image 2 with status 4? What would you expect the executable to return?

Retired 12/31/2016
0 Kudos
Highlighted
Beginner
7 Views

Thanks for pointing that out.

Thanks for pointing that out. I continued the discussion at Stackoverflow.

0 Kudos
Highlighted
7 Views

I submitted a request to the

I submitted a request to the developers, issue DPD200361211, that at least the ERROR STOP stop code be propagated. I also asked them to see if an exception that triggered termination could also be propagated.

Retired 12/31/2016
0 Kudos
Highlighted
7 Views

This has been implemented for

This has been implemented for Windows in a future major release (calendar year 2017). However, we haven't yet found a way to do this reliably on Linux.

Retired 12/31/2016
0 Kudos