cuda.demos.hello-world: We need a byte-array from map-index.
parent
2ca1b32580
commit
33a1b7625e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue