Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PETSc Error #826

Closed
DevasmitDutta opened this issue Sep 5, 2022 · 1 comment
Closed

PETSc Error #826

DevasmitDutta opened this issue Sep 5, 2022 · 1 comment

Comments

@DevasmitDutta
Copy link

DevasmitDutta commented Sep 5, 2022

Hi, I am operating on macOS Monterey, version 12.5.1, and i am facing an issue when i try to run code using GridapPETSc, below is the error in stack-trace

PETSc Error --- Application was linked against both OpenMPI and MPICH based MPI libraries 
and will not run correctly

After i got this error, i have un-installed MPICH from my machine, and currently only have OPEN-MPI, but still it shows having linked with multiple MPI implementation.

@JordiManyer
Copy link
Member

Hi,
It's hard to asses the problem with such a limited information, but I think your problem might be that the library that MPI.jl is using is different to the mpi library used to compile PETSc.
First, I would advise you to read the MPI.jl configuration manual.

Also, if you are using GridapPETSc.jl I would suggest you

  1. Set your MPI.jl package to use your system mpi library.
  2. Dowload and compile PETSc locally using the same mpi library. This CI script contains bash instructions to do so.
  3. Rebuild both the artifacts in your project by running
julia --project=. -e `using Pkg; Pkg.build()` 

Hopefully this solves your issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants