scripts
Modules
slurm_logs
Process slurm logs from the command-line.
Examples:
ipsl_slurm_logs slurm.log --output-dir output_test/ --remove-trailing-whitespaces
The above command separates slurm.log containing model execution using 4 MPI processes into
distinct files inside the output_test/ directory:
output_test/
├── output_0.log
├── output_10.log
├── output_11.log
├── output_12.log
JSON example:
ipsl_slurm_logs slurm.log --json > slurm.json
Will separate the slurm.log into a JSON format.
Functions
main
main()
Source code in ipsl_common/scripts/slurm_logs.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 | |