HeterogeneousCore
CUDACore
src
ContextState.cc
Go to the documentation of this file.
1
#include "
HeterogeneousCore/CUDACore/interface/ContextState.h
"
2
#include "
FWCore/Utilities/interface/Exception.h
"
3
4
namespace
cms::cuda
{
5
void
ContextState::throwIfStream
()
const
{
6
if
(
stream_
) {
7
throw
cms::Exception
(
"LogicError"
) <<
"Trying to set ContextState, but it already had a valid state"
;
8
}
9
}
10
11
void
ContextState::throwIfNoStream
()
const
{
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
Exception
Definition:
hltDiff.cc:245
cms::cuda
Definition:
Product.h:14
ContextState.h
cms::cuda::ContextState::throwIfNoStream
void throwIfNoStream() const
Definition:
ContextState.cc:11
cms::cuda::ContextState::stream_
SharedStreamPtr stream_
Definition:
ContextState.h:55
cms::cuda::ContextState::throwIfStream
void throwIfStream() const
Definition:
ContextState.cc:5
Exception.h
Generated for CMSSW Reference Manual by
1.8.14