Joe Groff
|
336409d67a
|
cuda.gl: with-mapped-cuda-buffer helper word
|
2010-05-25 00:37:15 -07:00 |
Joe Groff
|
3e76148e08
|
cuda.gl: cuda-buffer helper object that pairs a buffer with its attached CUDA resource
|
2010-05-24 22:57:25 -07:00 |
Joe Groff
|
724d6c3786
|
cuda.contexts, cuda.gl: factor out set-up-cuda-context and clean-up-cuda-context so they can be used by objects that own a cuda context (separate from with-cuda-context)
|
2010-05-24 22:13:15 -07:00 |
Joe Groff
|
e282a922af
|
cuda.libraries: make grid tuple read-only, grid-dim/block-dim foldable, and CUDA-FUNCTION: words inline so that kernel call sites can optimize
|
2010-05-20 18:10:17 -07:00 |
Joe Groff
|
aa80bb060d
|
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
|
6068a4fa14
|
cuda.libraries: rework parameter passing to fill entire parameter space in one API call
|
2010-05-20 17:23:47 -07:00 |
Joe Groff
|
ccf8ed377b
|
cuda.libraries: scrape out some useless code
|
2010-05-20 15:57:23 -07:00 |
Joe Groff
|
1c07f69833
|
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
|
2542bb42cf
|
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
|
7f8e55760d
|
improve cuda library organization
|
2010-05-20 14:40:26 -07:00 |
Joe Groff
|
d70bf5fe60
|
cuda.devices: factor "context-device cuda-device-properties" into a "context-device-properties" word
|
2010-05-16 17:16:27 -07:00 |
Joe Groff
|
2566e68f80
|
cuda.gl.ffi: add missing LIBRARY: cuda befor ffi function defs
|
2010-05-15 22:33:03 -07:00 |
Joe Groff
|
1e938f01cf
|
cuda.gl: enum>number the flags argument to gl-buffer>resource so that single CUDA flag symbols can be used as arguments
|
2010-05-15 16:26:49 -07:00 |
Joe Groff
|
567ab15274
|
cuda: move init-cuda from cuda.utils
|
2010-05-15 15:28:02 -07:00 |
Joe Groff
|
c93596bb7b
|
cuda.demos.prefix-sum: add init-cuda
|
2010-05-15 15:01:32 -07:00 |
Joe Groff
|
cb589c1f73
|
cuda: more API cleanups:
- remove useless with-cuda and with-cuda-program combinators
- eliminate redundant cuda-device, cuda-context variables
- rearrange arguments of with-*cuda-context to ( device flags quot -- )
- don't pass context to with-cuda-context quot
- add context-device word to ask for current device
|
2010-05-15 11:47:19 -07:00 |
Joe Groff
|
9280e545b1
|
cuda.gl: add free-resource word to release interop handles
|
2010-05-14 16:17:03 -07:00 |
Joe Groff
|
8cbc74ffe1
|
cuda: add "cuda.gl" vocab with words for cuda/opengl/gpu interop
|
2010-05-14 16:00:27 -07:00 |
Joe Groff
|
4b7ed99982
|
cuda: in with-cuda-context, sync context when cleaning up so that destroying context doesn't fail due to asynchronous errors
|
2010-05-14 16:00:27 -07:00 |
Joe Groff
|
dc2f06bddc
|
Merge branch 'master' of factorcode.org:/git/factor
|
2010-05-12 13:49:02 -07:00 |
Joe Groff
|
a5960a9a3a
|
new cuda.types vocab containing CUDA vector types (int2, float4, etc.) with CUDA alignment
|
2010-05-12 13:48:44 -07:00 |
Slava Pestov
|
095c9543e9
|
cuda.utils: fix load error
|
2010-05-10 20:50:28 -04:00 |
Joe Groff
|
5977b5e6e9
|
cuda.utils: add "sync-context" word
|
2010-05-10 15:06:15 -07:00 |
Joe Groff
|
e29cd1199a
|
cuda.devices: fix distribute-jobs to look only at width of maxThreadsDim
|
2010-05-07 18:15:37 -07:00 |
Joe Groff
|
9616168986
|
cuda.devices: have distribute-jobs construct a launcher with the calculated grid-dim, block-dim, and shared-size
|
2010-05-07 18:09:21 -07:00 |
Joe Groff
|
f0bf95d291
|
remove cuda.constants; it's better to get those values from device-properties
|
2010-05-07 18:03:30 -07:00 |
Joe Groff
|
949ea98a69
|
cuda.devices: "distribute-jobs" utility word that determines grid and block size for a job based on per-thread shared memory requirements and max block size
|
2010-05-07 18:02:42 -07:00 |
Joe Groff
|
f5d33a3e34
|
cuda.utils: foo <c-object> ... foo memory>struct == foo <struct>
|
2010-05-07 17:18:08 -07:00 |
Joe Groff
|
552128afc4
|
cdua.devices: remove redundant init-cuda calls
|
2010-05-07 17:16:28 -07:00 |
Joe Groff
|
24b244a8ff
|
cuda: fix using single integer as grid size
|
2010-05-05 19:07:39 -07:00 |
Joe Groff
|
13b29784f0
|
cuda.memory: dependencies
|
2010-05-05 17:38:59 -07:00 |
Joe Groff
|
544fa00abf
|
cuda: rearrange function-launcher grid and block dim to be in the right order
|
2010-05-05 17:38:37 -07:00 |
Joe Groff
|
e8a790067b
|
add cuda.constants vocab
|
2010-05-04 19:49:44 -07:00 |
Joe Groff
|
0961fed70f
|
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 |
Joe Groff
|
aa152758f8
|
cuda: streamline memory api
|
2010-05-03 18:18:10 -07:00 |
Doug Coleman
|
656118f959
|
init-cuda in a couple more places...
|
2010-04-23 23:19:26 -05:00 |
Doug Coleman
|
61a91cc416
|
Sprinkle init-cuda everywhere you could conceivably need it!
|
2010-04-23 23:17:47 -05:00 |
Doug Coleman
|
363fc2071e
|
Move cuda.devices word out of cuda.utils
|
2010-04-23 18:27:13 -05:00 |
Doug Coleman
|
359067f36f
|
Compile the .cu file with a relative pathname instead of absolute
|
2010-04-23 15:06:43 -05:00 |
Doug Coleman
|
441856e119
|
Add using
|
2010-04-23 14:43:48 -05:00 |
Doug Coleman
|
47ddf60b80
|
move cuda.utils library words to cuda.libraries
|
2010-04-23 14:43:13 -05:00 |
Doug Coleman
|
28c775381d
|
remove init-cuda from a combinator because it's a startup-hook now
|
2010-04-23 14:29:24 -05:00 |
Doug Coleman
|
5d3b8ed678
|
Run hello-world on each CUDA device. fix a bug with returning the hello world string. add with-each-cuda-device combinator to run a program on each device. add an init-hook for cuda-init
|
2010-04-23 14:29:24 -05:00 |
Doug Coleman
|
f86227913c
|
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 |
Joe Groff
|
5b116da02e
|
Merge branch 'symbolic-enums' of git://github.com/erikcharlebois/factor
|
2010-04-20 16:43:58 -07:00 |
Joe Groff
|
6ca5f7eeb9
|
cuda.ptx: better representation of operands
|
2010-04-20 13:51:10 -07:00 |
Joe Groff
|
5aecd92c37
|
C-ENUM: -> ENUM:
|
2010-04-19 20:07:16 -07:00 |
Joe Groff
|
1524b2db35
|
Merge branch 'master' of factorcode.org:/git/factor
|
2010-04-19 00:40:30 -07:00 |
Joe Groff
|
9b703707d2
|
cuda.ptx: unit tests for instruction serialization
|
2010-04-19 00:40:10 -07:00 |
Doug Coleman
|
e7d852c0ce
|
Move some code to cuda.devices
|
2010-04-19 01:21:36 -05:00 |