[petsc-users] --with-hypre-dir did not work for petsc configure in Win-7

Qin Lu lu_qin_2000 at yahoo.com
Thu Nov 7 09:56:20 CST 2013


I managed to build hypre-2.8.0b with cygwin (instead of cmake) and it worked, but have no idea why it created libhypre.a rather than libhypre.lib. From hypre build's screen output, it did use icl. Please let me know if there is a way to force to create .lib file.

Anyway, PETSc's configure should not care how hypre was built, right? I tried to rename libhypre.a to libhypre.lib (for testing purpose) but got the same error. 

Thank,
Qin 

On Thursday, November 7, 2013 9:20 AM, Satish Balay <balay at mcs.anl.gov> wrote:

On Thu, 7 Nov 2013, Qin Lu wrote:

> Satish,
>  
> I tried what you suggested for petsc configure but it still did not work. See the attached configure.log.
>  
> How did you see I was using gcc for hypre? 

For cl/icl the library should be libhypre.lib or hypre.lib [not libhypre.a]

> I think I used Intel compiler icl since I specified "CC=icl CXX=icl" for hypre configure. I double-checked hypre's Makefile.config and CC and CXX are icl.

If you follow the instructions I copy/pasted in my previous e-mail regarding 'windows' installation
- there is no mention of using configure - but of using cmake. [I think you have to install/use native
windows cmake - not the one from cygwin]


Satish

>  
> Thanks,
> Qin
> 
> 
> 
> On Wednesday, November 6, 2013 6:37 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> For one - the  --with-hypre-lib would be:
> 
> --with-hypre-lib=/cygdrive/c/Lib/hypre-2.8.0b-win64-release/lib/libHYPRE.a
> 
> However - it appears you built hypre with gcc - not icc [which I thought was your goal]
> 
> If gcc/gfortran would work - you might as well install hypre via petsc configure [--download-hypre]
> 
> Satish
> 
> 
> > Satis,
> > 
> > 1. hypre-2.9 did not build in Win-7 for some reason, so I still use hypre-2.8.0b.
> > 2. I used CXXFLAGS="-O2 -MT" for hypre configure.
> > 3. Tried --with-hypre-include and --with-hypre-lib but still got error:
> > 
> >  ===============================================================================                                                                                                 TESTING: check from config.libraries(config/BuildSystem/config/libraries.py:145)                                                                                                *******************************************************************************
> > UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log for details):
> > -------------------------------------------------------------------------------
> > --with-hypre-lib=['/cygdrive/c/Lib/hypre-2.8.0b-win64-release/lib'] and
> > --with-hypre-include=['/cygdrive/c/Lib/hypre-2.8.0b-win64-release/include'] did not work
> > *******************************************************************************
> > 
> > 4. Content of hypre installation:
> >  
> > $ ls -R /cygdrive/c/Lib/hypre-2.8.0b-win64-release
> > /cygdrive/c/Lib/hypre-2.8.0b-win64-release:
> > include  lib
> > /cygdrive/c/Lib/hypre-2.8.0b-win64-release/include:
> > Data.h                                       HYPRE_krylov.h                HYPRE_struct_mv.h   _hypre_IJ_mv.h       csr_block_matrix.h    par_csr_block_matrix.h
> > HYPRE.h                                      HYPRE_lobpcg.h                HYPREf.h            _hypre_parcsr_ls.h   csr_matmultivec.h     par_csr_matmultivec.h
> > HYPRE_DistributedMatrixPilutSolver_protos.h  HYPRE_matrix_matrix_protos.h  LLNL_FEI_Fei.h      _hypre_parcsr_mv.h   distributed_matrix.h  par_csr_pmvcomm.h
> > HYPRE_DistributedMatrixPilutSolver_types.h   HYPRE_parcsr_ls.h             LLNL_FEI_Impl.h     _hypre_sstruct_ls.h  fei_defs.h            par_multivector.h
> > HYPRE_FEI_includes.h                         HYPRE_parcsr_mv.h             LLNL_FEI_LSCore.h   _hypre_sstruct_mv.h  hypre_cfei.h          seq_multivector.h
> > HYPRE_IJ_mv.h                                HYPRE_seq_mv.h                LLNL_FEI_Matrix.h   _hypre_struct_ls.h   interpreter.h         seq_mv.h
> > HYPRE_LinSysCore.h                           HYPRE_sstruct_ls.h            LLNL_FEI_Solver.h   _hypre_struct_mv.h   krylov.h              temp_multivector.h
> > HYPRE_MatvecFunctions.h                      HYPRE_sstruct_mv.h            LinearSystemCore.h  cfei-hypre.h         lobpcg.h
> > HYPRE_config.h                               HYPRE_struct_ls.h             Lookup.h            cfei_hypre.h         multivector.h
> > /cygdrive/c/Lib/hypre-2.8.0b-win64-release/lib:
> > libHYPRE.a
> > 
> > 5. I used compilation option -O3 for PETSc, but -O2 for hypre, can this be a problem?
> >  
> > Thanks,
> > Qin
> > 
> > On Wednesday, November 6, 2013 4:11 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> > 1. use latest hypre version - i.e
> > https://computation.llnl.gov/casc/hypre/download/hypre-2.9.1a.tar.gz
> > 
> > 2. Make sure its buit with -MT compiler option
> > 
> > 3. specify hypre with --with-hypre-include and --with-hypre-lib options
> > 
> > 4. send us the following [so we know whats there - and why configure is not finding it]
> > 
> > ls -R /cygdrive/c/Lib/hypre-2.8.0b-win64-release 
> > 
> > Satish
> > 
> > 
> > On Wed, 6 Nov 2013, Qin Lu wrote:
> > 
> > > Hello,
> > >  
> > > I have built hypre-2.8.0b in Win-7 and have put the installlation under C:\Lib\hypre-2.8.0b-win64-release. Now I want to include it in my PETSc build but PETSc configure (within cygwin) gave an error message:
> > >  
> > > --with-hypre-dir=/cygdrive/c/Lib/hypre-2.8.0b-win64-release did not work
> > >  
> > > The configure.log is attached. 
> > >  
> > > Many thanks for any suggestions,
> > >  
> > > Qin    
> >  


More information about the petsc-users mailing list