CrayLabs / SmartSim

SmartSim Infrastructure Library.
BSD 2-Clause "Simplified" License
219 stars 36 forks source link

Use templates for batch scripts #596

Open al-rigazzi opened 1 month ago

al-rigazzi commented 1 month ago

Description

Templates should be used by _write_xxx_script methods.

Justification

Currently, batch scripts are written programmatically, line by line, in Step functions such as _write_sbatch_script. The usage of templates would be more indicated, as the content of such scripts is pretty standard.

Implementation Strategy

Templates should be used to replace the current line-by-line functions.