[petsc-users] Is there a way of having PETSc compile hypre with provided intel/mkl?

Satish Balay balay at mcs.anl.gov
Mon Jul 30 11:00:47 CDT 2018


On Mon, 30 Jul 2018, Bastian Löhrer wrote:

> On 30.07.2018 16:11, Satish Balay wrote:
> > On Mon, 30 Jul 2018, Bastian Löhrer wrote:
> >
> >> On 30.07.2018 13:28, Matthew Knepley wrote:
> >>> On Mon, Jul 30, 2018 at 5:48 AM Bastian Löhrer
> >>> <bastian.loehrer at tu-dresden.de <mailto:bastian.loehrer at tu-dresden.de>>
> >>> wrote:
> >>>
> >>>      Dear PETSc users,
> >>>
> >>>      im configuring PETSc to use an intel stack including intel/mkl:
> >>>
> >>>      ./configure PETSC_ARCH=$PETSC_ARCH \
> >>>      --with-gnu-compilers=0 --with-vendor-compilers=intel \
> >>>      --with-large-file-io=1 \
> >>>      --CFLAGS="-L${I_MPI_ROOT}/intel64/lib
> >>>      -I${I_MPI_ROOT}/intel64/include -lmpi"            \
> >>>      --CXXFLAGS="-L${I_MPI_ROOT}/intel64/lib
> >>>      -I${I_MPI_ROOT}/intel64/include -lmpi -lmpicxx" \
> >>>      --FFLAGS="-L${I_MPI_ROOT}/intel64/lib
> >>>      -I${I_MPI_ROOT}/intel64/include -lmpi"            \
> >>>      --LDFLAGS="-L${I_MPI_ROOT}/intel64/lib
> >>>      -I${I_MPI_ROOT}/intel64/include -lmpi"           \
> >>>      --with-blas-lapack-dir="${MKLROOT}/lib/intel64" \
> >>>      --download-hypre \
> >>>      --with-debugging=yes
> >>>
> >>>      *
> >>>      two questions:*
> >>>
> >>>      *
> >>>      1)* the blas-lapack-dir option is not passed down to the
> >>>      compilation of hypre according to $PETSC_DIR/$PETSC_ARCH/conf/hypre
> >>>      *Is there a way of having PETSc compile hypre with my intel/mkl?*
> >>>
> >>>
> >>> This should happen. Please send configure.log so we can see what went on.
> >> My initial guess was that the file $PETSC_DIR/$PETSC_ARCH/conf/hypre lists
> >> the
> >> parameters which are used for compiling hypre. As I said, this file does
> >> not
> >> mention mkl anywhere.
> >> I may be mistaken though, because having a second look I do realize that
> >> the
> >> mkl library is mentioned in the configure log file in line 86661 ff. (where
> >> hypre is being configured) and at the end of the log.
> >>
> >> Here is my configure.log:
> >> https://cloudstore.zih.tu-dresden.de/index.php/s/b6rT0WMAKEMsj8S/download
> >>
> >> Here is that hypre file:
> >> https://cloudstore.zih.tu-dresden.de/index.php/s/TSfXQ2pgDw5ALZm/download
> > Working directory: /lustre/ssd/prime/libraries/petsc-3.3-p6_29
> >
> >
> > This release is pretty old. Can you use the currently supported release -
> > i.e 3.9?
> >
> > Satish
> Yes, we are indeed currently updating our code to be compatible with 3.9, but
> we will need older versions of petsc too to be able to run old versions of our
> code.

With older versions - your best bet is to port this patch over and see if that works.

https://bitbucket.org/petsc/petsc/commits/77408d619c8

Or build hypre manually - using the additinal options enabled by this
patch [or check and the hypre config from the hypre build that the
current verison of PETSc builds and installs]

Satish


More information about the petsc-users mailing list