Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[redgreengpu] Fixes for CCE 17 #107

Open
wants to merge 1 commit into
base: redgreengpu
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/trans/gpu/internal/uvtvd_mod.F90
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
! (C) Copyright 1991- ECMWF.
! (C) Copyright 1991- Meteo-France.
!
!
! This software is licensed under the terms of the Apache Licence Version 2.0
! which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
! In applying this licence, ECMWF does not waive the privileges and immunities
Expand Down Expand Up @@ -102,8 +102,7 @@ SUBROUTINE UVTVD(KFIELD)
!$OMP& MAP(ALLOC:ZN) &
!$OMP& MAP(TO:D_MYMS,D_NUMP,R_NTMAX) &
!$OMP& MAP(TO:F_RN) &
!$OMP& MAP(ALLOC:ZEPSNM) &
!$OMP& SHARED(I_DIV_OFFSET)
!$OMP& MAP(ALLOC:ZEPSNM,ZOA1,ZOA2)
#endif

#ifdef OMPGPU
Expand All @@ -126,7 +125,7 @@ SUBROUTINE UVTVD(KFIELD)
#ifdef ACCGPU
!$ACC PARALLEL LOOP COLLAPSE(2) PRIVATE(KM,IN) DEFAULT(NONE) &
!$ACC& COPYIN(KFIELD) &
!$ACC& PRESENT(D_NUMP,D_MYMS,F_RN,R_NTMAX)
!$ACC& PRESENT(D_NUMP,D_MYMS,F_RN,R_NTMAX,ZOA1)
#endif
DO KMLOC=1,D_NUMP
DO J=1,2*KFIELD
Expand All @@ -142,7 +141,7 @@ SUBROUTINE UVTVD(KFIELD)

#ifdef OMPGPU
!$OMP TARGET TEAMS DISTRIBUTE PARALLEL DO COLLAPSE(3) PRIVATE(IR,II,IN,KM,ZKM) DEFAULT(NONE) &
!$OMP& SHARED(D_NUMP,R_NTMAX,KFIELD,D_MYMS,ZN,ZEPSNM)
!$OMP& SHARED(D_NUMP,R_NTMAX,KFIELD,D_MYMS,ZN,ZEPSNM,I_DIV_OFFSET,ZOA1,ZOA2)
#endif
#ifdef ACCGPU
!$ACC PARALLEL LOOP COLLAPSE(3) PRIVATE(IR,II,IN,KM,ZKM) DEFAULT(NONE) &
Expand Down
Loading