class sssd_engine::data_engine_sc::DataEngine

#include "data_engine_sc.hpp"

Overview

class to manage kernels on single device

// fields

std::thread run_t

Fields

std::thread run_t

thread for run data engine;

Methods

DataEngine

DataEngine (
    int t_id,
    VPP_BP& _csvInBufPool,
    VPP_BP& _cfgInBufPool,
    VPP_BP& _outBufPool,
    VPP_BP& _metaBufPool,
    VPP_CC* _cuCluster
    )

constructor of data engine. context, program, command queue are created and ready after FPGA init

Parameters:

t_id targeted device id.
_csvInBufPool input CSV buffer pool
_cfgInBufPool input configuration buffer pool
_outBufPool output result buffer pool
_metaBufPool output meta buffer pool
_cuCluster CU clusters

~DataEngine

~DataEngine ()

default deconstructor

pushRequest

void pushRequest (
    std::promise <RetObj> prom,
    std::string file_path,
    size_t size,
    uint64_t* cfg
    )

push request to queue

Parameters:

prom promise to synchronize status of execution
file_path file path
size file size
cfg pointer to configuration buffer

release

void release (char* buf)

release buffer

Parameters:

buf buffer to be released