Skip to content

Commit

Permalink
using -uacc enter data directive
Browse files Browse the repository at this point in the history
  • Loading branch information
mbeidler3 committed Aug 1, 2023
1 parent 8f769be commit 73e7e54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/korc_ppusher.f90
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ subroutine FO_init_ACC(params,F,spp,output,step)
call provide_ezspline_mars_ACC(bfield_2d_local,b1Refield_2d_local,b1Imfield_2d_local, &
fields_domain_local)

!$acc enter data copyin(bfield_2d_local,b1Refield_2d_local,b1Imfield_2d_local,fields_domain_local)

!$acc parallel loop !&
!!$acc& firstprivate(E0,m_cache,q_cache,psip_conv,amp,phase,Ro,Bo, &
!!$acc& Analytic_D3D_IWL,circumradius,ntiles,useDiMES,DiMESloc_cyl(3), &
Expand Down Expand Up @@ -644,6 +646,8 @@ subroutine FO_init_ACC(params,F,spp,output,step)
enddo
!$acc end parallel loop

!$acc exit data delete(bfield_2d_local,b1Refield_2d_local,b1Imfield_2d_local,fields_domain_local)

endif !(if output)

if(step.and.(.not.params%FokPlan)) then
Expand Down

0 comments on commit 73e7e54

Please sign in to comment.