Global Namespace

Overview

// namespaces

namespace xf
    namespace xf::hpc
        namespace xf::hpc::rtm

// typedefs

typedef RTM2D <RTM_dataType, RTM_order, RTM_maxDim, RTM_MaxB, RTM_nPE> RTM_TYPE
typedef RTM_TYPE::t_PairInType RTM_pairType
typedef RTM_TYPE::t_InType RTM_vtType
typedef RTM_TYPE::t_UpbInType RTM_upbType
typedef xf::blas::WideType <RTM_dataType, RTM_parEntries> RTM_wideType
typedef RTM_wideType::t_TypeInt RTM_interface
typedef RTM2D <RTM_dataType, RTM_order, RTM_maxDim, RTM_MaxB, RTM_nPE> RTM_TYPE
typedef RTM_TYPE::t_PairInType RTM_pairType
typedef RTM_TYPE::t_InType RTM_vtType
typedef RTM_TYPE::t_UpbInType RTM_upbType
typedef xf::blas::WideType <RTM_dataType, RTM_parEntries> RTM_wideType
typedef RTM_wideType::t_TypeInt RTM_interface
typedef Domain3D <RTM_maxZ, RTM_maxY, RTM_order/2, RTM_nPEZ, RTM_nPEX, RTM_numFSMs> DOMAIN_TYPE
typedef RTM3D <DOMAIN_TYPE, RTM_dataType, RTM_order, RTM_maxZ, RTM_maxY, RTM_MaxB, RTM_nPEZ, RTM_nPEX> RTM_TYPE
typedef RTM_TYPE::t_InType RTM_type
typedef RTM_TYPE::t_UpbInType RTM_upbType
typedef Domain3D <RTM_maxZ, RTM_maxY, RTM_order/2, RTM_nPEZ, RTM_nPEX, RTM_numFSMs> DOMAIN_TYPE
typedef RTM3D <DOMAIN_TYPE, RTM_dataType, RTM_order, RTM_maxZ, RTM_maxY, RTM_MaxB, RTM_nPEZ, RTM_nPEX> RTM_TYPE
typedef RTM_TYPE::t_InType RTM_type

// macros

#define POINTER( \
    NAME, \
    BUNDLE \
    )

#define PRAGMA_HLS(x)
#define SCALAR(NAME)

Global Functions

fcnKernel

#include "mlp/fcnKernel.hpp"
void fcnKernel (
    DdrIntType* p_DdrRd,
    DdrIntType* p_DdrWr
    )

fcnKernel defines the kernel top function, with DDR/HBM as an interface

Parameters:

p_DdrRd is DDR/HBM memory address used for read
p_DdrWr is DDR/HBM memory address used for write

rtmbackward

#include "rtm2d/rtmbackward.hpp"
void rtmbackward (
    const unsigned int p_z,
    const unsigned int p_x,
    const unsigned int p_t,
    const unsigned int p_recz,
    const RTM_dataType* p_rec,
    const RTM_dataType* p_coefz,
    const RTM_dataType* p_coefx,
    const RTM_dataType* p_taperz,
    const RTM_dataType* p_taperx,
    const RTM_interface* p_v2dt2,
    RTM_interface* p_p0,
    RTM_interface* p_p1,
    RTM_interface* p_r0,
    RTM_interface* p_r1,
    RTM_interface* p_i0,
    RTM_interface* p_i1,
    RTM_upbType* p_upb
    )

rfmbackward kernel function

Parameters:

p_z is the number of grids along detecting depth
p_x is the number of grids along detecting width
p_t is the number of detecting time parititons
p_recz is the z coordinates of all receivers
p_rec is the receiver data wavefileds
p_coefz is the laplacian z-direction coefficients
p_coefx is the laplacian x-direction coefficients
p_taperz is the absorbing factor along z
p_taperx is the absorbing factor along x
p_v2dt2 is the velocity model v^2 * dt^2
p_upb is the uppper bounday wavefiled
p_p0 is the first input memory of source wavefield
p_p1 is the second input memory of source wavefield
p_r0 is the first input memory of receiver wavefield
p_r1 is the second input memory of receiver wavefield
p_i0 is the first input memory of cross-correlation images
p_i1 is the second input memory of cross-correlation images

rtmforward

rtmforward overload (1)

#include "rtm2d/rtmforward.hpp"
void rtmforward (
    const unsigned int p_z,
    const unsigned int p_x,
    const unsigned int p_t,
    const unsigned int p_srcz,
    const unsigned int p_srcx,
    const RTM_dataType* p_src,
    const RTM_dataType* p_coefz,
    const RTM_dataType* p_coefx,
    const RTM_dataType* p_taperz,
    const RTM_dataType* p_taperx,
    const RTM_interface* p_v2dt2,
    RTM_interface* p_p0,
    RTM_interface* p_p1,
    RTM_upbType* p_upb
    )

rfmforward kernel function

Parameters:

p_z is the number of grids along detecting depth
p_x is the number of grids along detecting width
p_t is the number of detecting time parititons
p_srcz is the source z coordinate
p_srcx is the source x coordinate
p_src is the source wavefiled
p_coefz is the laplacian z-direction coefficients
p_coefx is the laplacian x-direction coefficients
p_taperz is the absorbing factor along z
p_taperx is the absorbing factor along x
p_v2dt2 is the velocity model v^2 * dt^2
p_p0 is the first input memory of source wavefield
p_p1 is the second input memory of source wavefield
p_upb is the uppper bounday wavefiled

rtmforward overload (2)

#include "rtm3d/rtmforward_hbc.hpp"
void rtmforward (
    const unsigned int p_z,
    const unsigned int p_y,
    const unsigned int p_x,
    const unsigned int p_t,
    const unsigned int p_srcz,
    const unsigned int p_srcy,
    const unsigned int p_srcx,
    const RTM_dataType* p_src,
    const RTM_dataType* p_coefz,
    const RTM_dataType* p_coefy,
    const RTM_dataType* p_coefx,
    const RTM_dataType* p_taperz,
    const RTM_dataType* p_tapery,
    const RTM_dataType* p_taperx,
    const RTM_type* p_v2dt2,
    RTM_type* p_pi0,
    RTM_type* p_pi1,
    RTM_type* p_po0,
    RTM_type* p_po1,
    RTM_type* p_ppi0,
    RTM_type* p_ppi1,
    RTM_type* p_ppo0,
    RTM_type* p_ppo1,
    RTM_upbType* p_upb
    )

rfmforward kernel function

Parameters:

p_z is the number of grids along z
p_y is the number of grids along y
p_x is the number of grids along x
p_t is the number of detecting time parititons
p_srcz is the source z coordinate
p_srcy is the source y coordinate
p_srcx is the source x coordinate
p_src is the source wavefiled
p_coefz is the laplacian z-direction coefficients
p_coefy is the laplacian y-direction coefficients
p_coefx is the laplacian x-direction coefficients
p_taperz is the absorbing factor along z
p_tapery is the absorbing factor along y
p_taperx is the absorbing factor along x
p_v2dt2 is the velocity model v^2 * dt^2
p_pi0 the first input memory of pressure wavefield at t-1
p_pi1 the second input memory of pressure wavefield at t-1
p_po0 the first output memory of pressure wavefield at t-1
p_po1 the second output memory of pressure wavefield at t-1
p_ppi0 the first input memory of pressure wavefield at t-2
p_ppi1 the second input memory of pressure wavefield at t-2
p_ppo0 the first output memory of pressure wavefield at t-2
p_ppo1 the second output memory of pressure wavefield at t-2
p_upb is the uppper bounday wavefiled

rtmforward overload (3)

#include "rtm3d/rtmforward_rbc.hpp"
void rtmforward (
    const unsigned int p_z,
    const unsigned int p_y,
    const unsigned int p_x,
    const unsigned int p_t,
    const unsigned int p_srcz,
    const unsigned int p_srcy,
    const unsigned int p_srcx,
    const RTM_dataType* p_src,
    const RTM_dataType* p_coefz,
    const RTM_dataType* p_coefy,
    const RTM_dataType* p_coefx,
    const RTM_type* p_v2dt2,
    RTM_type* p_pi0,
    RTM_type* p_pi1,
    RTM_type* p_po0,
    RTM_type* p_po1,
    RTM_type* p_ppi0,
    RTM_type* p_ppi1,
    RTM_type* p_ppo0,
    RTM_type* p_ppo1
    )

rfmforward kernel function

Parameters:

p_z is the number of grids along z
p_y is the number of grids along y
p_x is the number of grids along x
p_t is the number of detecting time parititons
p_srcz is the source z coordinate
p_srcy is the source y coordinate
p_srcx is the source x coordinate
p_src is the source wavefiled
p_coefz is the laplacian z-direction coefficients
p_coefy is the laplacian y-direction coefficients
p_coefx is the laplacian x-direction coefficients
p_v2dt2 is the velocity model v^2 * dt^2
p_pi0 is the first input memory of pressure wavefield at t-1
p_pi1 is the second input memory of pressure wavefield at t-1
p_po0 is the first output memory of pressure wavefield at t-1
p_po1 is the second output memory of pressure wavefield at t-1
p_ppi0 is the first input memory of pressure wavefield at t-2
p_ppi1 is the second input memory of pressure wavefield at t-2
p_ppo0 is the first output memory of pressure wavefield at t-2
p_ppo1 is the second output memory of pressure wavefield at t-2