Main Page
+
Namespaces
Namespace List
+
Namespace Members
+
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
+
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Classes
Class List
Class Index
Class Hierarchy
+
Class Members
+
All
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
+
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Enumerations
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
+
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Properties
_
a
c
d
e
f
l
m
o
p
s
t
u
v
+
Related Functions
:
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Package Documentation
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
src
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:
PortableDeviceCollection.h:9
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