Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Ooops wrong comm
Browse files Browse the repository at this point in the history
  • Loading branch information
JDBetteridge committed Apr 19, 2024
1 parent 5b5631d commit 7e7ed47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyop2/compilation.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def sniff_compiler_version(self, cpp=False):
# MPI ranks is expensive
exe = self.cxx if cpp else self.cc
version = None
if mpi.COMM_WORLD.rank == 0:
if self.comm.rank == 0:
# `-dumpversion` is not sufficient to get the whole version string (for some compilers),
# but other compilers do not implement `-dumpfullversion`!
for dumpstring in ["-dumpfullversion", "-dumpversion"]:
Expand All @@ -265,7 +265,7 @@ def sniff_compiler_version(self, cpp=False):
break
except (subprocess.CalledProcessError, UnicodeDecodeError, InvalidVersion):
continue
self.version = mpi.COMM_WORLD.bcast(version, 0)
self.version = self.comm.bcast(version, 0)

@property
def bugfix_cflags(self):
Expand Down

0 comments on commit 7e7ed47

Please sign in to comment.