open-mpi: bump revision to rebottle.
Closes Homebrew/homebrew#46461. Signed-off-by: Martin Afanasjew <martin@afanasjew.de>
This commit is contained in:
parent
e63021a658
commit
6a1c3fc8de
1 changed files with 15 additions and 0 deletions
|
@ -3,6 +3,7 @@ class OpenMpi < Formula
|
|||
homepage "https://www.open-mpi.org/"
|
||||
url "https://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-1.10.1.tar.bz2"
|
||||
sha256 "7919ecde15962bab2e26d01d5f5f4ead6696bbcacb504b8560f2e3a152bfe492"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "257a75a3227ddc0b5e7c970a97c76cadeda417a259c54efbe25df955e0efe32b" => :el_capitan
|
||||
|
@ -83,5 +84,19 @@ class OpenMpi < Formula
|
|||
system "#{bin}/mpicc", "hello.c", "-o", "hello"
|
||||
system "./hello"
|
||||
system "#{bin}/mpirun", "-np", "4", "./hello"
|
||||
(testpath/"hellof.f90").write <<-EOS.undent
|
||||
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
|
||||
EOS
|
||||
system "#{bin}/mpif90", "hellof.f90", "-o", "hellof"
|
||||
system "./hellof"
|
||||
system "#{bin}/mpirun", "-np", "4", "./hellof"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue