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 Product< T > &data)
 
template<typename T >
const Tget (const edm::Event &iEvent, edm::EDGetTokenT< Product< T >> token)
 
- 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 (edm::StreamID streamID)
 
 ScopedContextBase (const ProductBase &data)
 
 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.

char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79