pantry/projects/open-mpi.org/hellof.f90
Andrew 8ded6b7ce3
open-mpi.org (#2306)
* open-mpi.org

* test

* autoconf for darwin & MACOSX_DEPLOYMENT_TARGET env

* sed

* CXX & CC

* without sed

* modified:   projects/open-mpi.org/package.yml

* replace hardcoded paths

* wip

* wip

* wip

* OPAL_PREFIX

* make check fails due to unfixed @rpaths

* env

* more env

* try letting it find stuff

* let's see what we can give it

* more flags

* hmmmm

* suggested possibility

* compiler and linker flags

* this shouldn't be linux-only

* gha runs as root

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-09-07 12:32:16 -04:00

9 lines
283 B
Fortran

program hello
include 'mpif.h'
integer rank, size, ierror, tag, status(MPI_STATUS_SIZE)
call MPI_INIT(ierror)
call MPI_COMM_SIZE(MPI_COMM_WORLD, size, ierror)
call MPI_COMM_RANK(MPI_COMM_WORLD, rank, ierror)
print*, 'node', rank, ': Hello Fortran world'
call MPI_FINALIZE(ierror)
end