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

Satish Balay balay at mcs.anl.gov
Thu Nov 7 11:22:41 CST 2013


On Thu, 7 Nov 2013, Qin Lu wrote:

> Satish,
>  
> Sorry if I caused any confusions.

there is no confusion on my side.

> Let me clarify:
>  
> 1. I built hypre-2.8.0b using cygwin with Intel compiler icl. It created libHYPRE.a rather than libHYPRE.lib, which I don't know why. I have never said I used gcc, since I mentioned several times that I used "CC=icl CXX=icl" in hypre's configure options.

And I've responded saying : that can't be true [because icl would not
create libhypre.a - but hypre.lib]. Then you play arround 'with
renaming files' insteading of following up on what I say.

In a normal conversation - one would have responded by either
asserting their statemet by providing proof [by including the build
logs for hypre build] - or followed suggested recourse.

And I've repatedly pointed out hypre installation instructions [use
native-cmake for windows]. And you repatedly try something else and
expect it to work [cygwin/configure with CC=icl]

In a normal conversation - one would try the suggestions and repsond
if it worked or not [and elaborate on why the suggestion was not
appropriate - or if/why it didn't work]

Satish

>  
> 2. I am configuring PETSc-3.4.2 using cygwin with Intel comiler icl and with hypre-2.8.0b, but --with-hypre-lib, etc., did not work.
>  
> 3. If it is known that hypre lib built by cygwin (with icl) does not work for PETSc, please let me know. I will then figure out how to build it with cmake; if this is not the case, at least we should understand why --with-hypre-lib, etc., did not work.
> 
> Thanks,
> Qin
> 
>  
> On Thursday, November 7, 2013 10:06 AM, Satish Balay <balay at mcs.anl.gov> wrote:
> Sorry - looks like you are ignoring things I say.
> 
> [I pointed you many times to the hypre installation instructions which
> you are ingoring.  And then complaining that things don't work]
> 
> And there is no consistancy in your requirements.
> 
> [you say you want to build hypre with icc - but then you say you've
> built it with cygwin - i.e gcc? And then expect it to work with icc
> via petsc configure?
> 
> I see no point in replying any further. Its a waste of time..
> 
> Satish
> 
> 
> On Thu, 7 Nov 2013, Qin Lu wrote:
> 
> > 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