[petsc-users] Compile petsc using intel mpi

Balay, Satish balay at mcs.anl.gov
Tue Nov 27 10:15:33 CST 2018


If you already have MPI from intel - use the MPI compiler wrappers instead of icc etc.

./configure --with-cc=mpiicc --with-cxx=mpiicpc --with-fc=mpiifort PETSC_ARCH=arch-intel-mpi

Satish


On Tue, 27 Nov 2018, Zhang, Junchao via petsc-users wrote:

> 
> 
> On Tue, Nov 27, 2018 at 5:25 AM Edoardo alinovi via petsc-users <petsc-users at mcs.anl.gov<mailto:petsc-users at mcs.anl.gov>> wrote:
> Dear users,
> 
> I have installed intel parallel studio on my workstation and  thus I would like to take advantage of intel compiler.
> 
> Before messing up my installation, have you got some guidelines to survive at this attempt? I have found here in the mailing list the following instructions:
> 
> --with-cc=icc --with-fc=ifort --with-mpi-include=/path-to-intel --with-mpi-lib=/path-to-intel
> 
> Are they correct?
> I think so. But you may also add PETSC_DIR=/path-to-petsc PETSC_ARCH=name-for-this-build
> 
> 
> Also I have an already existing and clean installation of petsc using openmpi. I would like to retain this installtion since it is working very well and switching between the two  somehow. Any tips on this?
> Use PETSC_ARCH in PETSc configure to differentiate different builds, and export PETSC_ARCH in your environment to select the one you want to use. See more at https://www.mcs.anl.gov/petsc/documentation/installation.html
> 
> 
> I will never stop to say thank you for your precious support!
> 
> Edoardo
> 
> ------
> 
> Edoardo Alinovi, Ph.D.
> 
> DICCA, Scuola Politecnica,
> Universita' degli Studi di Genova,
> 1, via Montallegro,
> 16145 Genova, Italy
> 
> 
> 



More information about the petsc-users mailing list