cuda.demos.hello-world: We need a byte-array from map-index.

paths
Doug Coleman 2018-06-23 10:51:04 -05:00
parent 2ca1b32580
commit 33a1b7625e
1 changed files with 1 additions and 2 deletions

View File

@ -16,8 +16,7 @@ CUDA-FUNCTION: helloWorld ( char* string-ptr )
[
context-device number>string
"CUDA device " ": " surround write
"Hello World!" >byte-array [ - ] map-index host>device &cuda-free
"Hello World!" utf8 encode [ - ] B{ } map-index-as host>device &cuda-free
[ { 2 1 } { 6 1 1 } <grid> helloWorld ]
[ 12 device>host >string print ] bi
] with-destructors