CMS 3D CMS Logo

List of all members | Public Member Functions
cms::cuda::ScopedContextAnalyze Class Reference

#include <ScopedContext.h>

Inheritance diagram for cms::cuda::ScopedContextAnalyze:
cms::cuda::impl::ScopedContextGetterBase cms::cuda::impl::ScopedContextBase

Public Member Functions

 ScopedContextAnalyze (const ProductBase &data)
 Constructor to (possibly) re-use a CUDA stream. More...
 
- Public Member Functions inherited from cms::cuda::impl::ScopedContextGetterBase
template<typename T >
const Tget (const edm::Event &iEvent, edm::EDGetTokenT< Product< T >> token)
 
template<typename T >
const Tget (const Product< T > &data)
 
- Public Member Functions inherited from cms::cuda::impl::ScopedContextBase
int device () const
 
cudaStream_t stream () const
 
const SharedStreamPtrstreamPtr () const
 

Additional Inherited Members

- Protected Member Functions inherited from cms::cuda::impl::ScopedContextGetterBase
template<typename... Args>
 ScopedContextGetterBase (Args &&... args)
 
void synchronizeStreams (int dataDevice, cudaStream_t dataStream, bool available, cudaEvent_t dataEvent)
 
- Protected Member Functions inherited from cms::cuda::impl::ScopedContextBase
 ScopedContextBase (const ProductBase &data)
 
 ScopedContextBase (edm::StreamID streamID)
 
 ScopedContextBase (int device, SharedStreamPtr stream)
 

Detailed Description

The aim of this class is to do necessary per-event "initialization" in analyze()

Definition at line 222 of file ScopedContext.h.

Constructor & Destructor Documentation

◆ ScopedContextAnalyze()

cms::cuda::ScopedContextAnalyze::ScopedContextAnalyze ( const ProductBase data)
inlineexplicit

Constructor to (possibly) re-use a CUDA stream.

Definition at line 225 of file ScopedContext.h.

cms::cuda::impl::ScopedContextGetterBase::ScopedContextGetterBase
ScopedContextGetterBase(Args &&... args)
Definition: ScopedContext.h:70
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79