[petsc-dev] parmetis broken (with 64 bit indices)?

Barry Smith bsmith at mcs.anl.gov
Tue Sep 6 14:26:53 CDT 2011


  From ParMetis.py 

  def configureLibrary(self):
    PETSc.package.NewPackage.configureLibrary(self)
    #  PETSc can use ParMetis directly if built with 32 bit indices; ParMetis cannot work with 64 bit indices
    #  so we turn off useddirectly, but it can still be used by SuperLU_Dist
    if self.libraryOptions.integerSize == 64:
      self.useddirectly = 0

  In other words someone, I think his name is Sean, needs to update petsc-dev to use the latest ParMetis with support for 64 bit indices.

   Yes, ParMetis only started supporting 64 bit indices like a month ago.


    Barry


On Sep 6, 2011, at 2:21 PM, Mark F. Adams wrote:

> I can't seem to use ParMetis.  I get an error that its an unknown type.  I've deleted and reconfigured/built everything and ParMetis seems to get configured properly, but its not there and I've found that PETSC_HAVE_PARMETIS is not defined in partition.c.  I recently moved to 64 bit indices, could that be a problem?
> 
> This is what I get out of configure:
> 
> ===============================================================================                                                                  Compiling & installing Parmetis; this may take several minutes                                                                       ===============================================================================                                                            TESTING: alternateConfigureLibrary from PETSc.packages.mpi4py(config/PETSc/packages/mpi4py.py:49)                                          Compilers:
>  C Compiler:         /Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpicc  -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g3 
>  CUDA Compiler:      nvcc  -g 
>  C++ Compiler:       /Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpicxx   -Wall -Wwrite-strings -Wno-strict-aliasing -Wno-unknown-pragmas -g   
>  Fortran Compiler:   /Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpif90   -Wall -Wno-unused-variable -g 
> Linkers:
>  Static linker:   /usr/bin/ar cr
>  Dynamic linker:   /Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/bin/mpicxx  -dynamiclib -single_module -undefined dynamic_lookup -multiply_defined suppress
> MPI:
>  Includes: -I/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/include
> BLAS/LAPACK: -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib -lflapack -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib -lfblas
> c2html:
> ParMetis:
>  Includes: -I/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/include
>  Library:  -L/Users/markadams/Codes/petsc-dev/arch-macosx-gnu-O/lib -lparmetis -lmetis
> pthread:
> sowing:
> valgrind:
> PETSc:
>  PETSC_ARCH: arch-macosx-gnu-O
>  PETSC_DIR: /Users/markadams/Codes/petsc-dev
>  Clanguage: Cxx
>  Scalar type: real
>  Precision: double
>  Memory alignment: 16
>  shared libraries: disabled
>  dynamic loading: disabled
> xxx=========================================================================xxx
> Configure stage complete. Now build PETSc libraries with (legacy build):
>   make PETSC_DIR=/Users/markadams/Codes/petsc-dev PETSC_ARCH=arch-macosx-gnu-O all
> or (experimental with python):
>   PETSC_DIR=/Users/markadams/Codes/petsc-dev PETSC_ARCH=arch-macosx-gnu-O ./config/builder.py
> xxx=========================================================================xxx
> ~/Codes/petsc-dev>make PETSC_DIR=/Users/markadams/Codes/petsc-dev PETSC_ARCH=arch-macosx-gnu-O all                                         
> ==========================================
> 
> 
> mark




More information about the petsc-dev mailing list