parent
4e939bcf8a
commit
42a04f7e23
4 changed files with 41 additions and 44 deletions
@ -1,9 +0,0 @@ |
||||
#!/usr/bin/env python3 |
||||
|
||||
# Any exception causes return value to be not zero, which is sufficient. |
||||
|
||||
import sys |
||||
|
||||
fc = open('/etc/apt/sources.list').read() |
||||
if 'artful' not in fc and 'bionic' not in fc and 'cosmic' not in fc: |
||||
sys.exit(1) |
@ -1,21 +1,30 @@ |
||||
program mpitest |
||||
implicit none |
||||
include 'mpif.h' |
||||
logical :: flag |
||||
integer :: ier |
||||
call MPI_Init(ier) |
||||
if (ier /= 0) then |
||||
print *, 'Unable to initialize MPI: ', ier |
||||
stop 1 |
||||
endif |
||||
call MPI_Initialized(flag, ier) |
||||
if (ier /= 0) then |
||||
print *, 'Unable to check MPI initialization state: ', ier |
||||
stop 1 |
||||
endif |
||||
call MPI_Finalize(ier) |
||||
if (ier /= 0) then |
||||
print *, 'Unable to finalize MPI: ', ier |
||||
stop 1 |
||||
endif |
||||
end program mpitest |
||||
use, intrinsic :: iso_fortran_env, only: stderr=>error_unit |
||||
use mpi |
||||
|
||||
implicit none |
||||
|
||||
logical :: flag |
||||
integer :: ier |
||||
|
||||
call MPI_Init(ier) |
||||
|
||||
if (ier /= 0) then |
||||
write(stderr,*) 'Unable to initialize MPI', ier |
||||
stop 1 |
||||
endif |
||||
|
||||
call MPI_Initialized(flag, ier) |
||||
if (ier /= 0) then |
||||
write(stderr,*) 'Unable to check MPI initialization state: ', ier |
||||
stop 1 |
||||
endif |
||||
|
||||
call MPI_Finalize(ier) |
||||
if (ier /= 0) then |
||||
write(stderr,*) 'Unable to finalize MPI: ', ier |
||||
stop 1 |
||||
endif |
||||
|
||||
print *, "OK: Fortran MPI" |
||||
|
||||
end program |
||||
|
Loading…
Reference in new issue