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

RingIndexDtoH, a ring of buffer indices filled by the GPU and drained by the host. More...

#include <time.h>
#include <atomic>
#include <cassert>
#include <cuda_runtime.h>
#include <cuda/std/atomic>

Classes

class  Drp::Gpu::RingIndexDtoH
 Lock-free ring of buffer indices with a device producer (push()) and a host consumer (pop()). 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 __nanosleep(x)   {}
 Defined as a no-op when not compiling with nvcc, so that host-only code can include this header.
 

Detailed Description

RingIndexDtoH, a ring of buffer indices filled by the GPU and drained by the host.

Macro Definition Documentation

◆ __nanosleep

#define __nanosleep (   x)    {}

Defined as a no-op when not compiling with nvcc, so that host-only code can include this header.