[ET Trac] [Einstein Toolkit] #1548: stdout redirection in multithreading scenario
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Mon Apr 14 14:58:41 CDT 2014
#1548: stdout redirection in multithreading scenario
----------------------------------+-----------------------------------------
Reporter: gzheng@… | Owner:
Type: defect | Status: closed
Priority: major | Milestone:
Component: Cactus | Version: development version
Resolution: fixed | Keywords: stdout redirection
----------------------------------+-----------------------------------------
Changes (by rhaas):
* status: new => closed
* resolution: => fixed
Comment:
I believe the bug reporter is confused about threads and processes. An MPI
rank is the same as a process. It was always the case that all threads in
a processes (or MPI rank) output to the same file. The usual fix to make
output legible is to surround CCTK_Warn etc by an OMP CRITICAL section.
We may want to consider including this in the flesh code for CCTK_Warn and
CCTK_Info (should be fine since IO is slow so the extra serialization
hopefully does not hurt).
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1548#comment:1>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list