[petsc-users] ex19: Segmentation Violation when run with MUMPS on MacOS (arm64)

Satish Balay balay at mcs.anl.gov
Sun Mar 31 12:19:11 CDT 2024


On Sun, 31 Mar 2024, Zongze Yang wrote:

> Is there a possibility that this is related to the Fortran bindings of MPICH?
> 

I'm not sure if its an issue with MPICH - or the compiler stack.

The following works for me with latest 'main' branch - perhaps you can give it a try.

Satish

---
petsc at npro petsc % ./configure --download-bison --download-chaco --download-ctetgen --download-eigen --download-fftw --download-hdf5 --download-hpddm --download-hwloc --download-hypre --download-libpng --download-metis --download-mmg --download-mumps --download-netcdf --download-openblas --download-openblas-make-options="'USE_THREAD=0 USE_LOCKING=1 USE_OPENMP=0'" --download-p4est --download-parmmg --download-pnetcdf --download-pragmatic --download-ptscotch --download-scalapack --download-slepc --download-suitesparse --download-superlu_dist --download-tetgen --download-triangle --with-c2html=0 --with-debugging=1 --with-fortran-bindings=0 --with-shared-libraries=1 --with-x=0 --with-zlib --download-openmpi=https://urldefense.us/v3/__https://download.open-mpi.org/release/open-mpi/v5.0/openmpi-5.0.3rc1.tar.bz2__;!!G_uCfscf7eWS!enx_iI06hASD3vjUNP7-79F9vGT81q-rIfPQwideBplZO46aSo4P0P59HI-5IGQiw_EGCCXZN4xPNdzUYEYj9mA$  --download-pastix=https://urldefense.us/v3/__https://web.cels.anl.gov/projects/petsc/download/externalpackages/pastix_5.2.3-p1.tar.bz2__;!!G_uCfscf7eWS!enx_iI06hASD3vjUNP7-79F9vGT81q-rIfPQwideBplZO46aSo4P0P59HI-5IGQiw_EGCCXZN4xPNdzUoMQcIfU$  && make && make check

=============================================================================================
                         Configuring PETSc to compile on your system
=============================================================================================
<snip>
          CC arch-darwin-c-debug/obj/src/lme/interface/lmesetup.o
          CC arch-darwin-c-debug/obj/src/lme/interface/lmesolve.o
     CLINKER arch-darwin-c-debug/lib/libslepc.3.021.0.dylib
    DSYMUTIL arch-darwin-c-debug/lib/libslepc.3.021.0.dylib
Now to install the library do:
make SLEPC_DIR=/Users/petsc/petsc/arch-darwin-c-debug/externalpackages/git.slepc PETSC_DIR=/Users/petsc/petsc install
=========================================
*** Installing SLEPc ***
*** Installing SLEPc at prefix location: /Users/petsc/petsc/arch-darwin-c-debug  ***
====================================
Install complete.
Now to check if the libraries are working do (in current directory):
make SLEPC_DIR=/Users/petsc/petsc/arch-darwin-c-debug PETSC_DIR=/Users/petsc/petsc PETSC_ARCH=arch-darwin-c-debug check
====================================
/usr/bin/make --no-print-directory -f makefile PETSC_ARCH=arch-darwin-c-debug PETSC_DIR=/Users/petsc/petsc SLEPC_DIR=/Users/petsc/petsc/arch-darwin-c-debug/externalpackages/git.slepc install-builtafterslepc
/usr/bin/make --no-print-directory -f makefile PETSC_ARCH=arch-darwin-c-debug PETSC_DIR=/Users/petsc/petsc SLEPC_DIR=/Users/petsc/petsc/arch-darwin-c-debug/externalpackages/git.slepc slepc4py-install
make[6]: Nothing to be done for `slepc4py-install'.
*** Building and installing HPDDM ***
=========================================
Now to check if the libraries are working do:
make PETSC_DIR=/Users/petsc/petsc PETSC_ARCH=arch-darwin-c-debug check
=========================================
Running PETSc check examples to verify correct installation
Using PETSC_DIR=/Users/petsc/petsc and PETSC_ARCH=arch-darwin-c-debug
C/C++ example src/snes/tutorials/ex19 run successfully with 1 MPI process
C/C++ example src/snes/tutorials/ex19 run successfully with 2 MPI processes
C/C++ example src/snes/tutorials/ex19 run successfully with HYPRE
C/C++ example src/snes/tutorials/ex19 run successfully with MUMPS
C/C++ example src/snes/tutorials/ex19 run successfully with SuiteSparse
C/C++ example src/snes/tutorials/ex19 run successfully with SuperLU_DIST
C/C++ example src/vec/vec/tests/ex47 run successfully with HDF5
Running SLEPc check examples to verify correct installation
Using SLEPC_DIR=/Users/petsc/petsc/arch-darwin-c-debug/externalpackages/git.slepc, PETSC_DIR=/Users/petsc/petsc, and PETSC_ARCH=arch-darwin-c-debug
C/C++ example src/eps/tests/test10 run successfully with 1 MPI process
C/C++ example src/eps/tests/test10 run successfully with 2 MPI processes
Completed SLEPc check examples
Completed PETSc check examples
petsc at npro petsc % 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configure.log.gz
Type: application/gzip
Size: 2714476 bytes
Desc: 
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240331/634254ae/attachment-0001.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: make.log
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20240331/634254ae/attachment-0001.ksh>


More information about the petsc-users mailing list