Handbook
Glossary
cuda-device-name ( n -- string )
Vocabulary
cuda
.
devices
Inputs
n
an
object
Outputs
string
an
object
Definition
USING:
alien.strings
byte-arrays
cuda
cuda.ffi
io.encodings.utf8
kernel
;
IN:
cuda.devices
:
cuda-device-name
( n -- string )
[
256
[
<byte-array>
]
keep
]
dip
[
cuDeviceGetName
cuda-error
]
[
2drop
utf8
alien>string
]
3bi
;