[petsc-users] Building PETSc with Intel mpi

Qin Lu lu_qin_2000 at yahoo.com
Sat Mar 22 10:15:52 CDT 2014


The Intel mpi's wrappers to Intel compilers are mpiicc and mpiifort (not mpicc and mpif90), can PETSc's configure automatically pick them? Or I have to specify them explicitly (--with-cc=mpiicc --with-fc=mpiifort --with-mpi-compilers=0)?

Thanks,
Qin


________________________________
 From: Satish Balay <balay at mcs.anl.gov>
To: Qin Lu <lu_qin_2000 at yahoo.com> 
Cc: Barry Smith <bsmith at mcs.anl.gov>; petsc-users <petsc-users at mcs.anl.gov> 
Sent: Saturday, March 22, 2014 12:09 AM
Subject: Re: [petsc-users] Building PETSc with Intel mpi
 

> --with-mpi-dir=/apps/compilers/intel_2013/impi/4.1.0.024/intel64 --with-mpi-compilers=0

Does this mpi not come with mpicc/mpif90 wrappers? If they do - its best to use them.

If not - its best to look at the docs for this compiler - and specify it with the appropriate

--with-mpi-include --with-mpi-lib options, [instead of the above]

Satish


On Fri, 21 Mar 2014, Qin Lu wrote:

> Sourcing the .csh files of the compiler fixed the problem. Thanks! However, later it got another error (see the attached configure.log for details):
>  
> *******************************************************************************
>          UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> -------------------------------------------------------------------------------
> Fortran error! mpi_init() could not be located!
> *******************************************************************************
> 
> It seems the configure did not link the Intel MPI libs. I used --with-mpi-dir to specify the MPI directory, can configure get the correct Intel MPI lib names? If I have to specify the lib names (using --with-mpi-lib?), which libs should I specify? I saw a lot of libs under the directory, such as libmpi.a, libmpi_ipl64.a, libmpi_mt.a, etc. 
>  
> Thanks a lot,
> Qin
>  
> 
> ________________________________
>  From: Barry Smith <bsmith at mcs.anl.gov>
> To: Qin Lu <lu_qin_2000 at yahoo.com> 
> Cc: petsc-users <petsc-users at mcs.anl.gov> 
> Sent: Friday, March 21, 2014 10:11 AM
> Subject: Re: [petsc-users] Building PETSc with Intel mpi
>  
> 
> 
>   Did you follow the directions here: http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf
> 
>   Did it make any difference?
> 
> 
> On Mar 21, 2014, at 9:45 AM, Qin Lu <lu_qin_2000 at yahoo.com> wrote:
> 
> > Hello,
>> > I was trying to build PETSc-3.4.2 with Intel MPI using Intel-2013 compilers in Linux, but got the error below. The configure.log is attached.
>> > *******************************************************************************
> >                     UNABLE to EXECUTE BINARIES for ./configure 
> > -------------------------------------------------------------------------------
> > Cannot run executables created with FC. If this machine uses a batch system 
> > to submit jobs you will need to configure using ./configure with the additional option  --with-batch.
> >  Otherwise there is problem with the compilers. Can you compile and run code with your C/C++ (and maybe Fortran) compilers?
> > See http://www.mcs.anl.gov/petsc/documentation/faq.html#libimf
> > *******************************************************************************
>> > Thanks a lot for any suggestions abut the problem,
>> > Regards,
> > Qin
> 
>> > <configure.log>
> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140322/a82f73be/attachment-0001.html>


More information about the petsc-users mailing list