Skip to content

Commit

Permalink
Refresh OpenMP in UVTVD
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatfield committed Feb 10, 2025
1 parent e4fd8de commit 8aaf383
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/trans/gpu/internal/uvtvd_mod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ SUBROUTINE UVTVD(KF_UV,PU,PV,PVOR,PDIV)
!* 1. COMPUTE U V FROM VORTICITY AND DIVERGENCE.
! ------------------------------------------

#ifdef OMPGPU
!$OMP TARGET DATA MAP(PRESENT,ALLOC:D,D_MYMS,D_NUMP,R,R_NTMAX,FG,ZEPSNM,PU,PV,PVOR,PDIV)
#endif
#ifdef ACCGPU
!$ACC DATA &
!$ACC& PRESENT(D,D_MYMS,D_NUMP,R,R_NTMAX) &
Expand Down Expand Up @@ -171,6 +174,9 @@ SUBROUTINE UVTVD(KF_UV,PU,PV,PVOR,PDIV)
#ifdef ACCGPU
!$ACC END DATA
#endif
#ifdef OMPGPU
!$OMP END TARGET DATA
#endif
! ------------------------------------------------------------------
END ASSOCIATE

Expand Down

0 comments on commit 8aaf383

Please sign in to comment.