#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).