cuda: fix CUDA-LIBRARY: to take a proper path that could have spaces in it
parent
b39d4c54a4
commit
b4198dbee6
|
@ -6,7 +6,7 @@ destructors io io.encodings.string io.encodings.utf8 kernel locals
|
||||||
math math.parser namespaces sequences strings ;
|
math math.parser namespaces sequences strings ;
|
||||||
IN: cuda.demos.hello-world
|
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 )
|
CUDA-FUNCTION: helloWorld ( char* string-ptr )
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
USING: alien.c-types cuda cuda.contexts cuda.libraries cuda.syntax locals ;
|
USING: alien.c-types cuda cuda.contexts cuda.libraries cuda.syntax locals ;
|
||||||
IN: cuda.demos.prefix-sum
|
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 )
|
CUDA-FUNCTION: prefix_sum_block ( uint* in, uint* out, uint n )
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ fry kernel lexer namespaces parser ;
|
||||||
IN: cuda.syntax
|
IN: cuda.syntax
|
||||||
|
|
||||||
SYNTAX: CUDA-LIBRARY:
|
SYNTAX: CUDA-LIBRARY:
|
||||||
scan-token scan-word scan-token
|
scan-token scan-word scan-object
|
||||||
'[ _ _ add-cuda-library ]
|
'[ _ _ add-cuda-library ]
|
||||||
[ current-cuda-library set-global ] bi ;
|
[ current-cuda-library set-global ] bi ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue