UpdateHost_Tensor3D Subroutine

public subroutine UpdateHost_Tensor3D(this)

Arguments

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

Calls

proc~~updatehost_tensor3d~~CallsGraph proc~updatehost_tensor3d UpdateHost_Tensor3D interface~hipmemcpy hipMemcpy proc~updatehost_tensor3d->interface~hipmemcpy proc~gpucheck gpuCheck proc~updatehost_tensor3d->proc~gpucheck

Contents

Source Code


Source Code

  subroutine UpdateHost_Tensor3D(this)
    implicit none
    class(Tensor3D),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_Tensor3D