ptx-storage-space? ( object -- ? )


Vocabulary
cuda.ptx

Inputs and outputs
objectan object
?a boolean


Word description
Tests if the object is an instance of the ptx-storage-space class.

Definition
USING: kernel ;

IN: cuda.ptx

: ptx-storage-space? ( object -- ? )
dup .tex?
[ drop t ] [
dup .shared?
[ drop t ] [
dup .param?
[ drop t ] [
dup .local?
[ drop t ] [
dup .global?
[ drop t ]
[ dup .const? ~quotation~ ~quotation~ if ]
if
] if
] if
] if
] if ;