Now I want to transfer a piece of a device array to another device array using following code:
program main
implicit none
integer :: a(5,5,5,5)
integer, device :: a_d(5,5,5,5),b_d(5,5,5,5)
a=0
a_d=a
b_d(1:2,:,:,:)=a_d(2:3,:,:,:)
end program
The pgi compiler returns following error for b_d(1:2,:,:,:)=a_d(2:3,:,:,:)
:
PGF90-S-0519-More than one device-resident object in assignment.
How to solve this problem or, is there an efficient way to transfer only a piece of a device array to another device array?