Skip to content

[BUG]: FindParMETIS.cmake has flawed behaviour #3753

Open
@chrisrichardson

Description

@chrisrichardson

Summarize the issue

When building with cmake, the search path for parmetis includes PARMETIS_ROOT/lib, but if PARMETIS_ROOT is not set, then it will search in /lib. For some installations, (as I have found), there may be a copy of libparmetis.so in /lib.

e.g. when I build with spack on this specific machine, it links against both the parmetis in spack, and the one in /lib, causing MPI issues.

How to reproduce the bug

Build dolfinx using spack on a machine with parmetis installed in /lib.

Minimal Example (Python)

N/A

Output (Python)

N/A

Version

main branch

DOLFINx git commit

No response

Installation

No response

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions