Here’s another bit of terminology the Fortran spec seemed to feel the
need to invent for itself: talking about “images” to refer to running instances of a program. I figured this either meant “thread” or “process”, but a clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor supports
that concept.
So an image “terminates”, and returns a process “exit status”; this must
mean that an “image” is equivalent to a “process”.
3.80 Image instance of a Fortran program
An 'instance of a Fortran program' could be a grad student in an office executing her advisor's Fortran program with pen and paper.
Here’s another bit of terminology the Fortran spec seemed to feel the need to invent for itself: talking about “images” to refer to running instances
of a program. I figured this either meant “thread” or “process”,
but a
clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor
supports that concept.
So an image “terminates”, and returns a process “exit status”; this must
mean that an “image” is equivalent to a “process”.
Lawrence D'Oliveiro <ldo@nz.invalid> schrieb:
but a clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP
statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor supports
that concept.
So an image “terminates”, and returns a process “exit status”; this >> must mean that an “image” is equivalent to a “process”.
No.
On Mon, 26 Feb 2024 17:50:05 -0000 (UTC), Thomas Koenig wrote:
Lawrence D'Oliveiro <ldo@nz.invalid> schrieb:
but a clue appears in the 2018 spec, section 11.4, “STOP and ERROR STOP >>> statements”:
When an image is terminated by a STOP or ERROR STOP statement, its
stop code, if any, is made available in a processor-dependent
manner. If the stop-code is an integer, it is recommended that the
value be used as the process exit status, if the processor supports
that concept.
So an image “terminates”, and returns a process “exit status”; this >>> must mean that an “image” is equivalent to a “process”.
No.
But a process can only have one exit status, and an image can only have
one stop code. If there is not a 1:1 correspondence between them, then
what?
Sysop: | DaiTengu |
---|---|
Location: | Appleton, WI |
Users: | 991 |
Nodes: | 10 (0 / 10) |
Uptime: | 120:15:16 |
Calls: | 12,958 |
Files: | 186,574 |
Messages: | 3,265,650 |