Handbook
Glossary
ptx-arch? ( object -- ? )
Vocabulary
cuda
.
ptx
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
ptx-arch
class.
Definition
USING:
kernel
;
IN:
cuda.ptx
:
ptx-arch?
( object -- ? )
dup
sm_20?
[
drop
t
]
[
dup
sm_13?
[
drop
t
]
[
dup
sm_12?
[
drop
t
]
[
dup
sm_11?
[
drop
t
]
[
sm_10?
]
if
]
if
]
if
]
if
;