Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
tskisner committed Mar 14, 2024
1 parent 88d4513 commit 8e159bd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions pshmem/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,10 @@ def test_lock(self):


def run():
comm = None
if MPI is not None:
comm = MPI.COMM_WORLD

suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(LockTest))
suite.addTest(unittest.makeSuite(ShmemTest))
Expand All @@ -477,8 +481,8 @@ def run():
if not _ret.wasSuccessful():
ret += 1

if self.comm is not None:
ret = self.comm.allreduce(ret, op=MPI.SUM)
if comm is not None:
ret = comm.allreduce(ret, op=MPI.SUM)

if ret > 0:
print(f"{ret} Processes had failures")
Expand Down

0 comments on commit 8e159bd

Please sign in to comment.