UpdateHost_Tensor2D Subroutine

public subroutine UpdateHost_Tensor2D(this)

Arguments

TypeIntentOptionalAttributesName
class(Tensor2D), intent(inout) :: this

Calls

proc~~updatehost_tensor2d~~CallsGraph proc~updatehost_tensor2d UpdateHost_Tensor2D interface~hipmemcpy hipMemcpy proc~updatehost_tensor2d->interface~hipmemcpy proc~gpucheck gpuCheck proc~updatehost_tensor2d->proc~gpucheck

Contents

Source Code


Source Code

  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