[petsc-users] How to configure metis/parmetis in cygwin
Satish Balay
balay at mcs.anl.gov
Fri Aug 2 22:28:14 CDT 2013
On Fri, 2 Aug 2013, Danyang Su wrote:
> Hi All,
>
> I can install petsc successfully in CYGWIN without metis/parmetis. But when i
> configure with metis or parmetis, there will be some error.
>
> First I tried the following configuration
>
> ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
> --with-cxx='win32fe cl' --with-64-bit-indices --download-f-blas-lapack
> --download-superlu_dist --download-mumps --download-hypre --download-parmetis
> --download-metis
>
> There is error in build metis library so I build metis and parmetis manually,
> and then configure with the following configuration
yeah --download-metis does not work [as cmake doesn't like 'win32fe cl']
>
> ./configure --with-cc='win32fe cl' --with-fc='win32fe ifort'
> --with-cxx='win32fe cl' --with-64-bit-indices
> --with-parmetis-include=/cygdrive/c/cygwin/packages/parmetis-4.0.3/include
> --with-parmetis-lib=/cygdrive/c/cygwin/packages/parmetis-4.0.3/build/libparmetis/Release/parmetis.lib
> --with-metis-include=/cygdrive/c/cygwin/packages/parmetis-4.0.3/metis/include
> --with-metis-lib=/cygdrive/c/cygwin/packages/parmetis-4.0.3/build/libmetis/Release/metis.lib
> --download-f-blas-lapack --download-superlu_dist --download-mumps
> --download-hypre
>
> Then i get the following error
> *******************************************************************************
> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log for
> details):
> -------------------------------------------------------------------------------
> --with-metis-lib=['/cygdrive/c/cygwin/packages/parmetis-4.0.3/build/libmetis/Release/metis.lib']
> and
> --with-metis-include=['/cygdrive/c/cygwin/packages/parmetis-4.0.3/metis/include']
> did not work
> *******************************************************************************
> The log file for the last configuration is attached.
For one - make sure metis and parmetis are built with
-DMETIS_USE_LONGINDEX=1 this way - its compatible with
--with-64-bit-indices option.
Also rebuilt metis/parmetis with '/MT' or equivalent compiler
option. PETSc by default is built with this option - and 'cl' does not
like mixing object files compiled with different options.
Satish
More information about the petsc-users
mailing list