Commit Graph

11 Commits (a4c5a748adb2462eb6a9a4017d852a4825a43ea8)

Author SHA1 Message Date
Doug Coleman 76580da5d5 Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183.
Fixes #209.
2011-09-29 11:28:28 -07:00
Joe Groff 2ad382865e cuda.libraries, cuda.syntax: support for both 32- and 64-bit CUDA pointer abis. make CUDA-LIBRARY: read the abi as part of the library definition 2010-05-20 17:56:45 -07:00
Joe Groff efe7e94a07 cuda.libraries, cuda.syntax: factor generated CUDA-FUNCTION: word bodies into a "cuda-invoke" macro; add CUDA-GLOBAL: for referencing global symbols 2010-05-20 15:45:35 -07:00
Joe Groff f0a7f039bd cuda.libraries: rename "function-launcher" to "grid", 2<<< to <grid>, 3<<< to <grid-shared>, 4<<< to <grid-shared-stream> 2010-05-20 14:59:27 -07:00
Joe Groff 1a3fd1dc8c improve cuda library organization 2010-05-20 14:40:26 -07:00
Joe Groff 1d916246b0 cuda: rearrange function-launcher grid and block dim to be in the right order 2010-05-05 17:38:37 -07:00
Joe Groff 76512260b0 cuda.memory, cuda.syntax: inline some more words, add cuda-malloc-type word that allocates n*heap-size bytes of memory 2010-05-04 19:46:53 -07:00
Doug Coleman b8c10dc2cd Add using 2010-04-23 14:43:48 -05:00
Doug Coleman d6036b6d5b make host>device only take one parameter, add 2<<< for calling cuda functions where shared-memory is 0, simplify hello-world example 2010-04-23 14:29:23 -05:00
Doug Coleman 1624903ae1 Split up cuda vocab some more, make CUDA-LIBRARY: work 2010-04-19 00:46:26 -05:00
Doug Coleman 5c17e6ee98 CUDA-FUNCTION: works, splitting up CUDA into more vocabs 2010-04-18 18:34:46 -05:00