L3 APIs¶
template class BackwardKernel¶
#include "rtm2d_kernel.hpp"
Overview¶
class BackwardKernel is used to manage and run backward kernel on FPGA
template < typename t_DataType, unsigned int t_Order, unsigned int t_PE > class BackwardKernel: public XKernel // typedefs typedef WideData <t_DataType, t_PE> t_WideType typedef WideData <t_WideType, 2> t_PairType // fields static const unsigned int _4k
Methods¶
loadData¶
void loadData (const string filePath)
loadData load parameters for RTM backward kernel from given path
Parameters:
| filePath | the path where parameters are stored | 
run¶
double run ( unsigned int p_shot, host_buffer_t <t_PairType>& p_snaps, host_buffer_t <t_DataType>& p_upb, host_buffer_t <t_PairType>& p_p, host_buffer_t <t_PairType>& p_r, host_buffer_t <t_DataType>& p_i )
run launch the RTM backward kernel with given input parameters
Parameters:
| p_shot | the shot id | 
| p_upb | the upper boundary data | 
| p_snaps | input seismic snapshot | 
| p_p | output seismic source wavefiled | 
| p_r | output seismic receiver wavefiled | 
| p_i | output seismic image | 
template class ForwardKernel¶
#include "rtm2d_kernel.hpp"
Overview¶
class ForwardKernel is used to manage and run forward kernel on FPGA
template < typename t_DataType, unsigned int t_Order, unsigned int t_PE > class ForwardKernel: public XKernel // typedefs typedef WideData <t_DataType, t_PE> t_WideType typedef WideData <t_WideType, 2> t_PairType // fields static const unsigned int _4k
Methods¶
loadData¶
void loadData (const string filePath)
loadData load parameters for RTM forward kernel from given path
Parameters:
| filePath | the path where parameters are stored | 
run¶
double run ( unsigned int p_shot, unsigned int p_sx, host_buffer_t <t_PairType>& p_p, host_buffer_t <t_DataType>& p_upb )
run launch the RTM forward kernel with given input parameters
Parameters:
| p_shot | the shot id | 
| p_sx | the shot coordinate | 
| p_p | seismic snapshot | 
| p_upb | the upper boundary data |