math math.parser namespaces sequences strings ;
IN: cuda.demos.hello-world
-CUDA-LIBRARY: hello cuda32 vocab:cuda/demos/hello-world/hello.ptx
+CUDA-LIBRARY: hello cuda32 "vocab:cuda/demos/hello-world/hello.ptx"
CUDA-FUNCTION: helloWorld ( char* string-ptr )
USING: alien.c-types cuda cuda.contexts cuda.libraries cuda.syntax locals ;
IN: cuda.demos.prefix-sum
-CUDA-LIBRARY: prefix-sum cuda32 vocab:cuda/demos/prefix-sum/prefix-sum.ptx
+CUDA-LIBRARY: prefix-sum cuda32 "vocab:cuda/demos/prefix-sum/prefix-sum.ptx"
CUDA-FUNCTION: prefix_sum_block ( uint* in, uint* out, uint n )
IN: cuda.syntax
SYNTAX: CUDA-LIBRARY:
- scan-token scan-word scan-token
+ scan-token scan-word scan-object
'[ _ _ add-cuda-library ]
[ current-cuda-library set-global ] bi ;