On Thu, 22 Mar 2018, Klaij, Christiaan wrote: > OK, configure works with the option --with-cc=/path/to/mpicc, > thanks! > > I'm not sure you are right about checking --with-mpi-dir/bin,
There are 2 types of options to configure: - tell configure what to use - i.e do not guess [like --with-cc=mpicc'] - tell configure to *guess* with partial info [like --with-package-dir=/path/to/foo/bar] When configure has to guess - it will never be perfect. Sure - perhaps the guessing of --with-mpi-dir can be improved - but it will never be perfect. > because, at least with this install, the binaries are located in > --with-mpi-dir/intel64/bin: > > $ which mpicc > /opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/intel64/bin/mpicc So the more appropriate thing here [wrt petsc configure] is --with-mpi-dir=/opt/intel/compilers_and_libraries_2017.1.132/linux/mpi/intel64 And then - what if you want to use intel compilers and not gnu compilers [with intel mpi]? - you have to specify mpiicc - and not mpicc - so its best to prefer 'no-guess' options like --with-cc. [with-mpi-dir is usually convinent - but not always suitable] Satish > > Perhaps something to do with intel supporting both 32 and > 64bit. Anyway, our sysadmin didn't change any of these locations, > they just run the intel installer and this is what we got.