![]() |
![]() |
#include <ScopedContext.h>
Public Member Functions | |
ScopedContextAnalyze (const ProductBase &data) | |
Constructor to (possibly) re-use a CUDA stream. More... | |
![]() | |
template<typename T > | |
const T & | get (const Product< T > &data) |
template<typename T > | |
const T & | get (const edm::Event &iEvent, edm::EDGetTokenT< Product< T >> token) |
![]() | |
int | device () const |
cudaStream_t | stream () const |
const SharedStreamPtr & | streamPtr () const |
Additional Inherited Members | |
![]() | |
template<typename... Args> | |
ScopedContextGetterBase (Args &&...args) | |
void | synchronizeStreams (int dataDevice, cudaStream_t dataStream, bool available, cudaEvent_t dataEvent) |
![]() | |
ScopedContextBase (edm::StreamID streamID) | |
ScopedContextBase (const ProductBase &data) | |
ScopedContextBase (int device, SharedStreamPtr stream) | |
The aim of this class is to do necessary per-event "initialization" in analyze()
Definition at line 222 of file ScopedContext.h.
|
inlineexplicit |
Constructor to (possibly) re-use a CUDA stream.
Definition at line 225 of file ScopedContext.h.