]> gitweb.factorcode.org Git - factor.git/commitdiff
Fix the ptx path in cuda demo
authorDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Apr 2010 01:52:09 +0000 (20:52 -0500)
committerDoug Coleman <doug.coleman@gmail.com>
Mon, 19 Apr 2010 01:52:09 +0000 (20:52 -0500)
extra/cuda/demos/hello-world/hello-world.factor

index 6a598dda44a95ffb9aa90f108d2e5cdd8c89dac5..540c4b9148fcb0cad15ee089a669b9092d735094 100644 (file)
@@ -2,16 +2,16 @@
 ! See http://factorcode.org/license.txt for BSD license.
 USING: alien.c-types alien.strings cuda cuda.syntax destructors
 io.encodings.utf8 kernel locals math prettyprint sequences ;
-IN: cuda.hello-world
+IN: cuda.demos.hello-world
 
-CUDA-LIBRARY: hello vocab:cuda/hello.ptx
+CUDA-LIBRARY: hello vocab:cuda/demos/hello-world/hello.ptx
 
 CUDA-FUNCTION: helloWorld ( char* string-ptr ) ;
 
 :: cuda-hello-world ( -- )
     T{ launcher
         { device 0 }
-        { path "vocab:cuda/hello.ptx" }
+        { path "vocab:cuda/demos/hello-world/hello.ptx" }
     } [
         "Hello World!" [ - ] map-index malloc-device-string &dispose dup :> str