cuda: fix CUDA-LIBRARY: to take a proper path that could have spaces in it

db4
Doug Coleman 2015-07-21 16:36:24 -07:00
parent b39d4c54a4
commit b4198dbee6
3 changed files with 3 additions and 3 deletions

View File

@ -6,7 +6,7 @@ destructors io io.encodings.string io.encodings.utf8 kernel locals
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 )

View File

@ -3,7 +3,7 @@
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 )

View File

@ -5,7 +5,7 @@ fry kernel lexer namespaces parser ;
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 ;