<div dir="ltr"><div><div>Hi Experts!<br><br></div>I'm trying to configure PETSc on a system with Cray mpich. I got the following configure message:<br></div><div><br>===============================================================================<br>             Configuring PETSc to compile on your system                       <br>===============================================================================<br>TESTING: check from config.libraries(config/BuildSystem/config/libraries.py:146)                                                                                                                       *******************************************************************************<br>         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):<br>-------------------------------------------------------------------------------<br>Unable to find mpi in default locations!<br>Perhaps you can specify with --with-mpi-dir=<directory><br>If you do not want MPI, then give --with-mpi=0<br>You might also consider using --download-mpich instead<br>*******************************************************************************<br><br></div><div>Initially I was using the option --with-mpi-dir but configure script told me that it did not work.<br><br><br></div><div>This is the configure command that I am using:<br><br>./configure --prefix=/work/03341/hector/lonestar/installed/petsc3.6-intel-debug --PETSC_DIR=/work/03341/hector/lonestar/sources/petsc-master --PETSC_ARCH=haswell-debug --with-batch --with-cc=mpicc --with-cxx=mpicxx --with-fc=mpif90 --with-parmetis-dir=/work/03341/hector/lonestar/installed/parmetis/ --with-metis-dir=/work/03341/hector/lonestar/installed/parmetis/ --download-ptscotch --download-hypre --with-blas-lapack-lib=[/work/03341/hector/lonestar/mkl_static/libmkl_intel_lp64.a,/work/03341/hector/lonestar/mkl_static/libmkl_core.a,/work/03341/hector/lonestar/mkl_static/libmkl_intel_thread.a] --with-scalapack-include=/opt/apps/intel/<a href="http://16.0.1.150/compilers_and_libraries_2016.1.150/linux/mkl/include/">16.0.1.150/compilers_and_libraries_2016.1.150/linux/mkl/include/</a> --with-scalapack-lib=[/work/03341/hector/lonestar/mkl_static/libmkl_scalapack_lp64.a,/work/03341/hector/lonestar/mkl_static/libmkl_blacs_intelmpi_lp64.a] --with-valgrind=1 --with-valgrind-dir=/work/03341/hector/lonestar/installed/ --with-shared-libraries=0 --with-fortran-interfaces=1 --FC_LINKER_FLAGS="-openmp -openmp-link static" --FFLAGS="-openmp -openmp-link static" --LIBS="-Wl,--start-group /work/03341/hector/lonestar/mkl_static/libmkl_intel_lp64.a /work/03341/hector/lonestar/mkl_static/libmkl_core.a /work/03341/hector/lonestar/mkl_static/libmkl_intel_thread.a -Wl,--end-group -ldl -lpthread -lm" <br><br><br></div><div>Do you have any idea on how to solve the problem?<br><br></div><div>Thanks for your help!<br><br></div><div>Best regards,<br><br></div><div>Hector<br></div></div>