Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(Tensor2D), | intent(inout) | :: | this |
subroutine UpdateHost_Tensor2D(this)
implicit none
class(Tensor2D),intent(inout) :: this
call gpuCheck(hipMemcpy(c_loc(this%interior),this%interior_gpu,sizeof(this%interior),hipMemcpyDeviceToHost))
call gpuCheck(hipMemcpy(c_loc(this%boundary),this%boundary_gpu,sizeof(this%boundary),hipMemcpyDeviceToHost))
call gpuCheck(hipMemcpy(c_loc(this%extboundary),this%extboundary_gpu,sizeof(this%extboundary),hipMemcpyDeviceToHost))
endsubroutine UpdateHost_Tensor2D