dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #17900
Re: [Bug 544394] Re: Configure script doesn't find MPI
Johannes Ring <johannr@xxxxxxxxx> writes:
> It might not be very nice but you should be able to do i) and ii) in the
> build system as it is today:
>
> CXX=mpixlcxx scons configure customCxxFlags="-DHAS_MPI=1"
> CXX=icc scons configure customCxxFlags="-Nmpi -DHAS_MPI=1"
> CXX=CC scons configure customCxxFlags="-DHAS_MPI=1" customLinkFlags="-lmpi++ -lmpi"
>
Quick test, it seems like
CXX=CC scons configure customCxxFlags="-DHAS_MPI=1" customLinkFlags="-lmpi++ -lmpi"
fails since CXX isn't found in mpi_cxx_compilers
if env["enableMpi"]:
mpi_cxx_compilers = ["mpic++", "mpicxx", "mpiCC"]
mpi_cxx = os.environ.get("CXX", env.Detect(mpi_cxx_compilers))
<<<< snip snip
if not env.Detect(["mpirun", "mpiexec", "orterun"]) or not \
(mpi_cxx and \
os.path.basename(mpi_cxx.split()[-1]) in mpi_cxx_compilers):
print "MPI not found (might not work if PETSc uses MPI)."
# revert back to cxx compiler
env["CXX"] = cxx
> --
> Configure script doesn't find MPI
> https://bugs.launchpad.net/bugs/544394
> You received this bug notification because you are a direct subscriber
> of the bug.
>
> Status in DOLFIN: Confirmed
>
> Bug description:
> MPI can't be found on systems without explicit MPI wrappers (mpic++, mpiCC, etc)
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/dolfin/+bug/544394/+subscribe
--
Configure script doesn't find MPI
https://bugs.launchpad.net/bugs/544394
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
Status in DOLFIN: Confirmed
Bug description:
MPI can't be found on systems without explicit MPI wrappers (mpic++, mpiCC, etc)
References