Skip to content

Commit

Permalink
Fixed is_main_thread
Browse files Browse the repository at this point in the history
SLURM_PROCID is a string, not an integer
  • Loading branch information
tnipen committed Jan 15, 2025
1 parent fb28d64 commit 9e91ccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bris/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def main():
inference.run()

# Finalize all output, so they can flush to disk if needed
is_main_thread = ("SLURM_PROCID" not in os.environ) or (os.environ["SLURM_PROCID"] == 0)
is_main_thread = ("SLURM_PROCID" not in os.environ) or (os.environ["SLURM_PROCID"] == "0")
if is_main_thread:
for decoder_output in decoder_outputs:
for output in decoder_output["outputs"]:
Expand Down

0 comments on commit 9e91ccf

Please sign in to comment.