Skip to content

Commit

Permalink
Add OpenMP to ext_acc
Browse files Browse the repository at this point in the history
  • Loading branch information
samhatfield committed Jan 23, 2025
1 parent c2783f5 commit af93699
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/trans/gpu/algor/ext_acc.F90
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ subroutine ext_acc_create(ptrs, stream)
!$acc enter data create(pp) async(stream_act)
#endif
#ifdef OMPGPU
!$omp target enter data map(alloc:pp)
#endif
enddo
end subroutine
Expand Down Expand Up @@ -327,6 +328,7 @@ subroutine ext_acc_copyin(ptrs, stream)
!$acc enter data copyin(pp) async(stream_act)
#endif
#ifdef OMPGPU
!$omp target enter data map(to:pp)
#endif
enddo
end subroutine
Expand Down Expand Up @@ -363,6 +365,7 @@ subroutine ext_acc_copyout(ptrs, stream)
!$acc exit data copyout(pp) async(stream_act)
#endif
#ifdef OMPGPU
!$omp target exit data map(from:pp)
#endif
enddo
end subroutine
Expand Down Expand Up @@ -399,6 +402,7 @@ subroutine ext_acc_delete(ptrs, stream)
!$acc exit data delete(pp) async(stream_act)
#endif
#ifdef OMPGPU
!$omp target exit data map(delete:pp)
#endif
enddo
end subroutine
Expand Down

0 comments on commit af93699

Please sign in to comment.