Skip to content

Commit

Permalink
Use srun, but fix environment export and buffered output.
Browse files Browse the repository at this point in the history
  • Loading branch information
joaander committed Nov 1, 2023
1 parent 3d71c28 commit 91fd3a3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow/environments/umich.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@ class GreatLakesEnvironment(DefaultSlurmEnvironment):
_gpus_per_node = {"default": 2}
_shared_partitions = {"standard", "gpu"}

mpi_cmd = "mpirun"
# For unknown reasons, srun fails to export environment variables such as
# PATH on Great Lakes unless explicitly requested to with --export=ALL.
# On Great Lakes, srun also fails to flush the buffer until the end of
# the job without explicitly setting -u.
mpi_cmd = "srun -u --export=ALL"

@classmethod
def add_args(cls, parser):
Expand Down

0 comments on commit 91fd3a3

Please sign in to comment.