Skip to content

How to show the version of OpenMPI from "mpifort" etc. #13169

@cponder

Description

@cponder

I built OpenMPI 5.0.7 using the NVHPC 25;1 compilers.
When I run these commands

--> mpifort -V
nvfortran 25.1-0 64-bit target on x86-64 Linux -tp sapphirerapids 
NVIDIA Compilers and Tools
Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.
cponder@viking-prod-297: /usr/local/bin/mpifort -version
nvfortran-Warning-Unknown switch: -version
nvfortran-Warning-No files to process

--> mpifort --version
nvfortran 25.1-0 64-bit target on x86-64 Linux -tp sapphirerapids 
NVIDIA Compilers and Tools
Copyright (c) 2025, NVIDIA CORPORATION & AFFILIATES.  All rights reserved.

--> mpifort -dumpfullversion
25.1

they just show me the version of the underlying NVHPC compiler. though

mpirun --version
mpirun (Open MPI) 5.0.7

does give the right answer.

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