CMS 3D CMS Logo

ContextState.cc
Go to the documentation of this file.
3 
4 namespace cms::cuda {
6  if (stream_) {
7  throw cms::Exception("LogicError") << "Trying to set ContextState, but it already had a valid state";
8  }
9  }
10 
12  if (not stream_) {
13  throw cms::Exception("LogicError") << "Trying to get ContextState, but it did not have a valid state";
14  }
15  }
16 } // namespace cms::cuda
cms::cuda
Definition: Product.h:14
cms::cuda::ContextState::stream_
SharedStreamPtr stream_
Definition: ContextState.h:55
ContextState.h
Exception
Definition: hltDiff.cc:246
cms::cuda::ContextState::throwIfNoStream
void throwIfNoStream() const
Definition: ContextState.cc:11
Exception.h
cms::cuda::ContextState::throwIfStream
void throwIfStream() const
Definition: ContextState.cc:5