Skip to content

Commit

Permalink
Tweak _build_run_settings_lsf for non-nullable LSF make_mpmd argument
Browse files Browse the repository at this point in the history
  • Loading branch information
ankona committed Jun 21, 2023
1 parent f6b3586 commit fa9db5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions smartsim/database/orchestrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,12 @@ def _build_run_settings_lsf(

run_settings.set_erf_sets(erf_sets)

if erf_rs:
erf_rs.make_mpmd(run_settings)
else:
run_settings.make_mpmd(run_settings)
if not erf_rs:
erf_rs = run_settings
continue

erf_rs.make_mpmd(run_settings)

kwargs["run_args"] = run_args

return erf_rs
Expand Down
3 changes: 1 addition & 2 deletions smartsim/settings/lsfSettings.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@ def make_mpmd(self, settings: RunSettings) -> None:
"Colocated models cannot be run as a mpmd workload"
)

if settings:
self.mpmd.append(settings)
self.mpmd.append(settings)

def set_mpmd_preamble(self, preamble_lines: t.List[str]) -> None:
"""Set preamble used in ERF file. Typical lines include
Expand Down

0 comments on commit fa9db5c

Please sign in to comment.