lcls2
C++ API: public headers of xtcdata, psalg, psdaq and psana
Loading...
Searching...
No Matches
Reducer.hh File Reference

Reducer, which runs the loaded ReducerAlgo instances (one per worker) on calibrated GPU buffers and returns the reduced sizes. More...

#include <cstddef>
#include <vector>
#include <thread>
#include <atomic>
#include <string>
#include <map>
#include <memory>
#include <cuda_runtime.h>
#include <cuda/std/atomic>
#include "MemPool.hh"
#include "RingQueue_DtoH.hh"
#include "RingQueue_HtoD.hh"
#include "ReducerAlgo.hh"
#include "drp/spscqueue.hh"
#include "psdaq/service/Dl.hh"
#include <nlohmann/json.hpp>
#include "psdaq/service/fast_monotonic_clock.hh"

Classes

struct  Drp::Gpu::ReducerMetrics
 Per-worker counters in pinned host memory, exported by Reducer::setupMetrics(). More...
 
class  Drp::Gpu::Reducer
 Runs the data reduction on the GPU for PGPDrp: loads the reducer library named by the reducer kwarg, creates one ReducerAlgo per worker, and passes buffer indices in and ReducerTuple results out through per-worker queues. More...
 

Namespaces

namespace  Pds
 Outer namespace of the HSD digitizer helpers.
 
namespace  XtcData
 Namespace of the XTC data-format classes (Xtc, Dgram, TypeId, Src, NamesId, ShapesData, DescData, iterators, ...).
 
namespace  Drp
 This class services detectors whose event data is formatted from the AxiStreamBatcherEventBuilder firmware module This class depends upon the existence of a python module "psdaq.configdb.<detType>_config.py", which contains the following functions: <detType>_init (str) - returns a handle (PyObject) for interacting with the device configuration <detType>_connect (handle) - returns a dictionary with "paddr" element for Xpm link ID.
 
namespace  Drp::Gpu
 Namespace of the GPU DRP code (psdaq/drpGpu); only Gpu::Detector is forward-declared here.
 

Detailed Description

Reducer, which runs the loaded ReducerAlgo instances (one per worker) on calibrated GPU buffers and returns the reduced sizes.