Skip to content

Commit

Permalink
Workaround cray openacc bug regarding deviceptr
Browse files Browse the repository at this point in the history
  • Loading branch information
wdeconinck committed Oct 11, 2024
1 parent aa2a3dd commit c82b4d3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tests/field/fctest_field_gpu.F90
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ end subroutine kernel_host_ptr
subroutine kernel_device_ptr(dview)
implicit none
real(4) :: dview(:,:)

!$acc kernels deviceptr(dview)
!$acc data deviceptr(dview)
!$acc kernels
dview(2,1) = 5.
!$acc end kernels
!$acc end data
end subroutine kernel_device_ptr

! -----------------------------------------------------------------------------
Expand Down

0 comments on commit c82b4d3

Please sign in to comment.