[petsc-users] petsc 3.17 mpi configure issue
Satish Balay
balay at mcs.anl.gov
Thu Apr 14 12:49:11 CDT 2022
Sorry - the error message was wrong/misleading
I think some MPI wrappears use MPI_DIR env variable - and tend to break if set to the wrong location.
So the suggestion should have been
unset MPI_DIR
./configure --prefix=$PREFIX --with-mpi-dir=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5
[I'm not sure if you really need those LDFLAGS that you have in env - so might aswell unset it]
Satish
On Thu, 14 Apr 2022, Ben Pietras wrote:
> Hello,
>
> If I run
>
> $ ./configure --prefix=$PREFIX --with-mpi-dir=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5/ LDFLAGS=$LDFLAGS
>
> I get
>
> =============================================================================================
> WARNING! Found environment variable: MPI_DIR=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5
> Ignoring it! Use "./configure MPI_DIR=$MPI_DIR" if you really want to use this value
> =============================================================================================
>
> So, I try:
>
> $ ./configure --prefix=$PREFIX --with-mpi-dir=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5/ LDFLAGS=$LDFLAGS MPI_DIR=$MPI_DIR
>
> *********************************************************************************************
> ERROR in COMMAND LINE ARGUMENT to ./configure
> ---------------------------------------------------------------------------------------------
> The option MPI_DIR should probably be MPI-DIR
>
> Then,
>
> $ ./configure --prefix=$PREFIX --with-mpi-dir=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5/ LDFLAGS=$LDFLAGS MPI-DIR=$MPI_DIR
> =============================================================================================
> WARNING! Found environment variable: MPI_DIR=/opt/apps/mpi/gcc/openmpi/4.1.0-numa-ucx-1.9.0--gcc-4.8.5
> Ignoring it! Use "./configure MPI_DIR=$MPI_DIR" if you really want to use this value =============================================================================================
>
> My guess is that this is a bug (there is a '-' where it should be a '_').
>
> If I'm mistaken, could I be advised how to correct?
>
> Best,
> Ben
> --------------------------------------------------------
> Dr Ben Pietras <ben.pietras at manchester.ac.uk>
> Research Infrastructure, IT Services
> University of Manchester, UK
> ext. 63266
> http://ri.itservices.manchester.ac.uk
> --------------------------------------------------------
>
More information about the petsc-users
mailing list