From 33a1b7625e8ace7ca1c2d28b72cea959010ad32c Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sat, 23 Jun 2018 10:51:04 -0500 Subject: [PATCH] cuda.demos.hello-world: We need a byte-array from map-index. --- extra/cuda/demos/hello-world/hello-world.factor | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/extra/cuda/demos/hello-world/hello-world.factor b/extra/cuda/demos/hello-world/hello-world.factor index ef410df80b..980f7ba179 100644 --- a/extra/cuda/demos/hello-world/hello-world.factor +++ b/extra/cuda/demos/hello-world/hello-world.factor @@ -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 } helloWorld ] [ 12 device>host >string print ] bi ] with-destructors