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

MemPoolGpu, the memory pool of the GPU DRP (DMA, host write, calibration and reduce buffers), with DataDev, DetPanel, DmaDsc and Ptr. More...

#include "gpuUtils.hh"
#include <cstddef>
#include <vector>
#include <thread>
#include <atomic>
#include <cuda_runtime.h>
#include <nvtx3/nvtx3.hpp>
#include "drp/drp.hh"

Classes

struct  Drp::Gpu::Ptr< T >
 Pair of pointers of type T, one for the host and one for the device; Reducer uses it for each ring queue object and its device copy. More...
 
class  Drp::Gpu::DataDev
 Wraps a data_dev device so it can be automatically freed. More...
 
struct  Drp::Gpu::DetPanel
 The PGP device of the GPU DRP and the GPU resources tied to it. More...
 
class  Drp::Gpu::MemPoolGpu
 Memory pool of the GPU DRP. More...
 

Namespaces

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.
 

Macros

#define NVTX_DISABLE
 Disable NVTX profiling annotations; per the comment above, NVTX headers check this macro.
 

Functions

struct Drp::Gpu::__attribute__ ((packed)) DmaDsc
 DmaDsc: the 8-byte DMA descriptor (header word and size word) defined by AxiStreamDmaV2Write.vhd in the SURF library (per the code comment).
 

Detailed Description

MemPoolGpu, the memory pool of the GPU DRP (DMA, host write, calibration and reduce buffers), with DataDev, DetPanel, DmaDsc and Ptr.

Also holds the HOST_REARMS_DMA and HOST_LAUNCHED_REDUCERS build switches, both commented out.

Macro Definition Documentation

◆ NVTX_DISABLE

#define NVTX_DISABLE

Disable NVTX profiling annotations; per the comment above, NVTX headers check this macro.

It is defined after nvtx3.hpp is included above.