Handbook
Glossary
ptx-storage-space? ( object -- ? )
Vocabulary
cuda
.
ptx
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
ptx-storage-space
class.
Definition
USING:
classes.tuple.private
kernel
slots.private
;
IN:
cuda.ptx
:
ptx-storage-space?
( object -- ? )
dup
dup
tuple?
[
layout-of
7
slot
\
.const
eq?
]
[
drop
f
]
if
[
drop
t
]
[
dup
.tex?
[
drop
t
]
[
dup
.shared?
[
drop
t
]
[
dup
.param?
[
drop
t
]
[
dup
.local?
[
drop
t
]
[
dup
.global?
~quotation~ ~quotation~
if
]
if
]
if
]
if
]
if
]
if
;