<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Jul 11, 2014 at 4:28 PM, Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov" target="_blank">balay@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, 11 Jul 2014, Wadud Miah wrote:<br>
<br>
> Hello,<br>
><br>
> I am trying to build PETSc 3.5.0 with Hypre 2.9.0b with the following configure options:<br>
><br>
> ./configure \<br>
> --with-hypre=1 \<br>
> --with-hypre-lib=/data/home/eew918/hypre-2.9.0b/lib \<br>
<br>
This should be: --with-hypre-lib="-L/data/home/eew918/hypre-2.9.0b/lib -lHYPRE"<br>
<br>
You are probably better off using --download-hypre instead<br>
<br>
> --with-hypre-include=/data/home/eew918/hypre-2.9.0b/include \<br>
> --LDFLAGS="-L/opt/intel/composer_xe_2013_sp1.2.144/mkl/lib/intel64 -L/data/home/eew918/hypre-2.9.0b/lib" \<br>
> --with-blas-lib="mkl_intel_lp64 mkl_sequential mkl_core" \<br>
> --with-lapack-lib="mkl_intel_lp64 mkl_sequential mkl_core" \<br>
<br>
You can use --with-blas-lapack-lib=/opt/intel/composer_xe_2013_sp1.2.144/mkl [instead of the above 3 options<br></blockquote><div><br></div><div>It should be -dir, not -lib.</div><div><br></div><div> Matt</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> --with-fortran-interfaces=1 \<br>
> --prefix=$HOME/petsc-3.5.0 \<br>
> --with-shared-libraries=1 \<br>
> --with-mpi=1 \<br>
> --with-mpi-include=/opt/openmpi/1.6.5/intel/13.1/include \<br>
> --with-mpi-lib=/opt/openmpi/1.6.5/intel/13.1/lib/libmpi.so<br>
<br>
You are better off using --with-mpi-dir=/opt/openmpi/1.6.5/intel/13.1 [instead of the above 3 options<br>
<br>
Satish<br>
<br>
><br>
> But I keep getting the following error message during configure:<br>
><br>
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for details):<br>
> -------------------------------------------------------------------------------<br>
> --with-hypre-lib=['/data/home/eew918/hypre-2.9.0b/lib'] and<br>
> --with-hypre-include=['/data/home/eew918/hypre-2.9.0b/include'] did not work<br>
><br>
> I see the compilation command with the correct library path (-L/data/home/eew918/hypre-2.9.0b/lib) but no library name with the -l switch.<br>
><br>
> Regards,<br>
><br>
> -------------------------------------------<br>
> Wadud Miah<br>
> Research Computing Services (HPC)<br>
> 020 7882 8393<br>
><br>
><br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>