Changes so that ReSim_tf.py runs in AthenaMP
Updates to the RenameHITS substep.
- This now writes a HITS_RNM file, rather than a HITS_MRG file to avoid name clashes with any MP-related HITS merging.
- Set the
disableMP=True
option in theathenaExecutor
contruction for this sub-step. This forces it to run in serial Athena even ifnprocs
is set.
Updates to the ReSim substep.
- This now takes a HITS_RNM file as input.
- outputHITS_RNMFile is now of type
argHITSFile
rather thanargPOOLFile
.
With these changes then:
--athenaopts "ReSim:--nprocs=8"
on the command-line or simply setting the usual environment variable:
export ATHENA_PROC_NUMBER=8
is all that is needed to make the second sub-step of ReSim_tf.py
, but not the first, run in AthenaMP. Output merging works as normal. What I haven't yet tested is whether there is any issue with the job metadata recorded.