How to get mpif90 compiler for OpenSUSE Leap 15.0?

I want to run a program on OpenSUSE Leap 15.0, and I must compile it with the Fortran90 compiler mpif90 first. Unfortunately I can not find mpif90 for the respective distro. Is there a way to install it?

From the package repositories, install an MPI implementation such as Open MPI (I don't use OpenSUSE myself so I don't know what the name of the package is, but I'm sure you'll find it if you use the search functionality of the package manager). That will install the compiler wrappers like mpicc, mpifort, mpif90 and so on.

Edit: The compiler wrappers might be in a -dev or -devel package. On Ubuntu 18.04 the openmpi compiler wrappers are found in the package "libopenmpi-dev".

openmpi, latency or throughput. This RPM contains all the tools necessary to compile, link, and run Open MPI jobs. Version 1.10.7; Size 277 KB; openSUSE Leap 15.1. How to get mpif90 compiler for OpenSUSE Leap 15.0? Hot Network Questions Why would a nuclear powered spaceship needs to wait a few days before restarting the reactor engine?

You will need the package openmpi3-devel:

sudo zypper install openmpi3-devel

Note that, to allow co-existence of several Open MPI major versions, the binaries (including mpif90) do not go into /usr/bin, but into /usr/lib64/mpi/gcc/openmpi3/bin. A recommended way to work with MPI is to source the environment script

. /usr/lib64/mpi/gcc/openmpi3/bin/mpivars.sh

mpi problem, no access to mpif90 or mpifort, I have installed Leap 15 on my development machines and have mpicc, mpiCC and mpif77, for compiling C, C++ and fixed format Fortran 77. Leap 15 users, for example, can do this with the following command: Copy to clipboard Swap out openSUSE_Leap_15.0 for either openSUSE_Leap_42.3 or openSUSE_Tumbleweed if you’re using a different version of openSUSE.

In addition to the normal /usr/lib64/mpi location OpenSUSE also features the HPC project/environment with several types of MPI libraries and their versions and compilers used using the module system.

Install the package openmpi3-gnu-hpc-devel and enable it using

module load gnu
module load openmpi

Using the latter may suffice.

Then you can also install many associated libraries like FFTW3 or HDF5 and use them within the same module system. That will enable you to have those libraries compiled for the specific MPI version (OpenMPI 3) and the specific compiler (GNU - gfortran) even if you have several of these concurrently.

Then I have this in my .bashrc.

module load gnu
module load openmpi
module load netcdf-fortran
module load pfftw3
module load phdf5
module load pnetcdf

gcc-fortran, The system GNU Fortran Compiler. Version 7; Size 13.4 KB; openSUSE Leap 15.1. Direct Install Expert Download. Show gcc-fortran for other distributions  Hello I compile on opensuse leap 15.0 OpenWRT and have the following warnings I've already installed the dditional packages: libssh2-devel -> libpam pam-devel libgnutls-devel Compiling OpenWRT on leap 15.0 cannot find libpam, libgnutls, libopenldap, etc.

mpich, an easy-to-extend modular framework for other derived implementations. Version 3.2.1; Size 1.73 MB; openSUSE Leap 15.1. Direct Install Expert Download. The system GNU C Compiler. Version 7; Size 9.41 KB; openSUSE Leap 15.1; Direct Install Expert Download Show gcc for other distributions openSUSE:Leap:15.0

FAQ: Compiling MPI applications, Specifically: mpif77 and mpif90 are deprecated as of Open MPI v1.7. If you find yourself saying, "But I don't want to use wrapper compilers! 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35  Existing Leap users should find updating to Leap 15.2 seamless coming from Leap 15.1. Upgrading from previous versions of Leap are also supported. It is also worth remembering that openSUSE Leap uses Delta RPMs for all maintenance updates, ensuring that the long term bandwidth requirements for maintaining your Leap system are as small as possible.

Test Farm, openSUSE 13.2. gcc 4.9.3. mpif90 -O3 -g -x f95-cpp-input. mpich 3.1.3. fftw 3.3.4. farmer3. farmer3_intel15. openSUSE 13.2. intel 15.0.3. mpif90 -O3 -xHost  openSUSE Leap 15.1. Installation x86_64. JeOS x86_64. Live x86_64. Ports aarch64 ppc64le. x86_64. DVD Image 3.78 GB For DVD and USB stick. Contains a large collection

Comments
  • Take a look here: gcc.gnu.org/wiki/GFortranBinaries - if you can survive with source based installation, take a look here: owsiak.org/running-open-mpi-on-macos - I know it's for macOS, but steps will be nearly the same for Linux based distro.
  • mpif90 might be provided by the devel package.
  • @GillesGouaillardet: Good point. I just checked, and at least on Ubuntu that is indeed the case.