#include <ContextState.h>
Public Member Functions | |
ContextState ()=default | |
ContextState (const ContextState &)=delete | |
ContextState (ContextState &&)=delete | |
ContextState & | operator= (const ContextState &)=delete |
ContextState & | operator= (ContextState &&other)=delete |
~ContextState ()=default | |
Private Member Functions | |
int | device () const |
SharedStreamPtr | releaseStreamPtr () |
void | set (int device, SharedStreamPtr stream) |
const SharedStreamPtr & | streamPtr () const |
void | throwIfNoStream () const |
void | throwIfStream () const |
Private Attributes | |
int | device_ |
SharedStreamPtr | stream_ |
Friends | |
class | ScopedContextAcquire |
class | ScopedContextProduce |
class | ScopedContextTask |
The purpose of this class is to deliver the device and CUDA stream information from ExternalWork's acquire() to producer() via a member/StreamCache variable.
Definition at line 15 of file ContextState.h.
|
default |
|
default |
|
delete |
|
delete |
|
inlineprivate |
|
delete |
|
delete |
|
inlineprivate |
Definition at line 43 of file ContextState.h.
References eostools::move(), stream_, and throwIfNoStream().
|
inlineprivate |
Definition at line 30 of file ContextState.h.
References device(), device_, eostools::move(), cms::cuda::stream, stream_, and throwIfStream().
Referenced by cms::cuda::ScopedContextAcquire::~ScopedContextAcquire().
|
inlineprivate |
Definition at line 38 of file ContextState.h.
References stream_, and throwIfNoStream().
|
private |
Definition at line 11 of file ContextState.cc.
References Exception, and stream_.
Referenced by releaseStreamPtr(), and streamPtr().
|
private |
Definition at line 5 of file ContextState.cc.
References Exception, and stream_.
Referenced by set().
|
friend |
Definition at line 26 of file ContextState.h.
|
friend |
Definition at line 27 of file ContextState.h.
|
friend |
Definition at line 28 of file ContextState.h.
|
private |
Definition at line 56 of file ContextState.h.
|
private |
Definition at line 55 of file ContextState.h.
Referenced by releaseStreamPtr(), set(), streamPtr(), throwIfNoStream(), and throwIfStream().