Make "OMP task depend" sections conditional on OpenMP4, not just OpenMP

To allow compiling with gcc versions older than 4.9
This commit is contained in:
Martin Kroeker 2018-02-14 22:58:14 +01:00 committed by GitHub
parent 3cda1ce50a
commit eaab622f03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 4 deletions

View File

@ -512,7 +512,7 @@ C END IF
*
* Call the kernel
*
#if defined(_OPENMP)
#if defined(_OPENMP) && _OPENMP >= 201307L
IF( TTYPE.NE.1 ) THEN
!$OMP TASK DEPEND(in:WORK(MYID+SHIFT-1))
!$OMP$ DEPEND(in:WORK(MYID-1))

View File

@ -481,7 +481,7 @@
*
* Call the kernel
*
#if defined(_OPENMP)
#if defined(_OPENMP) && _OPENMP >= 201307L
IF( TTYPE.NE.1 ) THEN
!$OMP TASK DEPEND(in:WORK(MYID+SHIFT-1))
!$OMP$ DEPEND(in:WORK(MYID-1))

View File

@ -481,7 +481,7 @@
*
* Call the kernel
*
#if defined(_OPENMP)
#if defined(_OPENMP) && _OPENMP >= 201307
IF( TTYPE.NE.1 ) THEN
!$OMP TASK DEPEND(in:WORK(MYID+SHIFT-1))
!$OMP$ DEPEND(in:WORK(MYID-1))

View File

@ -512,7 +512,8 @@ C END IF
*
* Call the kernel
*
#if defined(_OPENMP)
#if defined(_OPENMP) && _OPENMP >= 201307L
IF( TTYPE.NE.1 ) THEN
!$OMP TASK DEPEND(in:WORK(MYID+SHIFT-1))
!$OMP$ DEPEND(in:WORK(MYID-1))