Skip to content

Commit

Permalink
Update testharness.py
Browse files Browse the repository at this point in the history
Apply the change proposed in #182 to allow oversubscription of MPI slots in openmpi 3.0 and above.
  • Loading branch information
jrper authored May 14, 2018
1 parent b8acaa3 commit 830d81c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tools/testharness.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,11 @@ def list(self):
os.environ["LD_LIBRARY_PATH"] = os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..", "lib")) + ":" + os.environ["LD_LIBRARY_PATH"]
except KeyError:
os.putenv("LD_LIBRARY_PATH", os.path.abspath(os.path.join(os.path.dirname(sys.argv[0]), "..", "lib")))

try:
os.environ["OMPI_MCA_rmaps_base_oversubscribe"] = "1"
except KeyError:
os.putenv("OMPI_MCA_rmaps_base_oversubscribe", "1")

try:
os.mkdir(os.environ["HOME"] + os.sep + "lock")
Expand Down

0 comments on commit 830d81c

Please sign in to comment.