Skip to content

Commit

Permalink
Allow oversubscription for openmpi
Browse files Browse the repository at this point in the history
  • Loading branch information
loganharbour committed Aug 15, 2024
1 parent 0f9cec5 commit ae310dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion python/TestHarness/testers/Tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,10 +400,15 @@ def spawnSubprocessFromOptions(self, timer, options):
else:
popen_kwargs['preexec_fn'] = os.setsid

# Set this for OpenMPI so that we don't clobber state
# Special logic for openmpi runs
if self.hasOpenMPI():
popen_env = os.environ.copy()

# Don't clobber state
popen_env['OMPI_MCA_orte_tmpdir_base'] = self.getTempDirectory().name
# Allow oversubscription for hosts that don't have a hostfile
popen_env['PRTE_MCA_rmaps_default_mapping_policy'] = ':oversubscribe'

popen_kwargs['env'] = popen_env

process = subprocess.Popen(*popen_args, **popen_kwargs)
Expand Down

0 comments on commit ae310dd

Please sign in to comment.