Skip to content

fortran vs mpi logic #697

Open
Open
@cyrush

Description

Use case:

Fortran language support is on - but MPI Fortran support is not needed.

I think because BLT calls find_package(MPI REQUIRED) we will always hit an error:

  49    -- Found MPI_C: /lib64/libxpmem.so (found version "3.1")
     50    -- Found MPI_CXX: /lib64/libxpmem.so (found version "3.1")
     51    -- Could NOT find MPI_Fortran (missing: MPI_Fortran_WORKS)
  >> 52    CMake Error at /usr/tce/backend/installations/linux-rhel8-x86_64/gcc
           -8.3.1/cmake-3.24.2-ywx52e32uh6gkxzuyubpwkulzgdvxyh6/share/cmake-3.2
           4/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
     53      Could NOT find MPI (missing: MPI_Fortran_FOUND) (found version "3.
           1")

For this case, the following would work:

find_package(MPI COMPONENTS C)

But we need to find the right way to wire as a blt option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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