I’m trying to compile Fortran with the OpenMP Workshare directive and failing. Since it’s such a basic feature, presumably either I’m doing something really stupid, or the installation (not managed by me but on a cluster) is somehow broken?
Here is my test program (test.F95):
integer :: a(1:10), b(1:10), c(1:10)
integer :: i
a(i) = i
b(i) = 10-i
!$OMP PARALLEL WORKSHARE
c = b + a
!$OMP END PARALLEL WORKSHARE
write (6,*) c
end program test
pgf90 -mp -o test test.F95
PGF90-S-0034-Syntax error at or near identifier workshare (test.F95: 12)
PGF90-S-0034-Syntax error at or near identifier workshare (test.F95: 14)
0 inform, 0 warnings, 2 severes, 0 fatal for test
and from pgf90 -V
pgf90 6.0-5 64-bit target on x86-64 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.