How to get logging messages as they're printed #293
-
I've found that when I run ARMI on a remote machine behind a SLURM scheduler, the I don't seem to have these issues with other python applications using standard |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
We do a bunch of stuff to redirect standard out and error in runLog.py, especially when running with MPI. The main thing that might be surprising is when using MPI, each rank gets its own file to write to in the We have been wondering for a while if some of this stuff is a bit to bespoke/over-wraught, and if it might make more sense to move over to more standardized logging libraries or the like, but haven't gotten to it. A couple of things that we would be really excited to be able to do with something more solid:
We would welcome and support any efforts along these lines :D |
Beta Was this translation helpful? Give feedback.
-
What happens if you invoke armi with a |
Beta Was this translation helpful? Give feedback.
What happens if you invoke armi with a
python -u
execution argument? That forces it to run in unbuffered mode, which is how we usually submit things.