parent
df0b734a17
commit
ebfb09f5d6
7 changed files with 73 additions and 3 deletions
@ -0,0 +1,3 @@ |
||||
## Fortran Coarray |
||||
|
||||
Fortran 2008 / 2018 coarray support was added via `dependency('coarray')` |
@ -0,0 +1,9 @@ |
||||
implicit none |
||||
|
||||
if (this_image() == 1) print *, 'number of Fortran coarray images:', num_images() |
||||
|
||||
sync all ! semaphore, ensures message above is printed at top. |
||||
|
||||
print *, 'Process ', this_image() |
||||
|
||||
end program |
@ -0,0 +1,10 @@ |
||||
project('Fortran coarray', 'fortran') |
||||
|
||||
# coarray is required because single-image fallback is an intrinsic feature |
||||
coarray = dependency('coarray', required : true) |
||||
|
||||
exe = executable('hello', 'main.f90', |
||||
dependencies : coarray) |
||||
|
||||
test('Coarray hello world', exe) |
||||
|
Loading…
Reference in new issue