#include <ScopedContext.h>
Public Member Functions | |
template<typename F > | |
void | pushNextTask (F &&f) |
void | replaceWaitingTaskHolder (edm::WaitingTaskWithArenaHolder waitingTaskHolder) |
ScopedContextTask (ContextState const *state, edm::WaitingTaskWithArenaHolder waitingTaskHolder) | |
Constructor to re-use the CUDA stream of acquire() (ExternalWork module) More... | |
~ScopedContextTask () | |
Public Member Functions inherited from cms::cuda::impl::ScopedContextBase | |
int | device () const |
cudaStream_t | stream () const |
const SharedStreamPtr & | streamPtr () const |
Private Attributes | |
ContextState const * | contextState_ |
impl::ScopedContextHolderHelper | holderHelper_ |
Additional Inherited Members | |
Protected Member Functions inherited from cms::cuda::impl::ScopedContextBase | |
ScopedContextBase (edm::StreamID streamID) | |
ScopedContextBase (const ProductBase &data) | |
ScopedContextBase (int device, SharedStreamPtr stream) | |
The aim of this class is to do necessary per-task "initialization" tasks created in ExternalWork acquire():
Definition at line 192 of file ScopedContext.h.
|
inlineexplicit |
Constructor to re-use the CUDA stream of acquire() (ExternalWork module)
Definition at line 195 of file ScopedContext.h.
References eostools::move().
cms::cuda::ScopedContextTask::~ScopedContextTask | ( | ) |
Definition at line 95 of file ScopedContext.cc.
References cms::cuda::impl::ScopedContextBase::device(), cms::cuda::impl::ScopedContextHolderHelper::enqueueCallback(), holderHelper_, and cms::cuda::impl::ScopedContextBase::stream().
|
inline |
Definition at line 203 of file ScopedContext.h.
References contextState_, f, holderHelper_, and cms::cuda::impl::ScopedContextHolderHelper::pushNextTask().
Referenced by TestCUDAProducerGPUEWTask::addSimpleWork().
|
inline |
Definition at line 207 of file ScopedContext.h.
References holderHelper_, eostools::move(), and cms::cuda::impl::ScopedContextHolderHelper::replaceWaitingTaskHolder().
|
private |
Definition at line 213 of file ScopedContext.h.
Referenced by pushNextTask().
|
private |
Definition at line 212 of file ScopedContext.h.
Referenced by pushNextTask(), replaceWaitingTaskHolder(), and ~ScopedContextTask().