]> gitweb.factorcode.org Git - factor.git/commitdiff
cuda.utils: foo <c-object> ... foo memory>struct == foo <struct>
authorJoe Groff <arcata@gmail.com>
Sat, 8 May 2010 00:18:08 +0000 (17:18 -0700)
committerJoe Groff <arcata@gmail.com>
Sat, 8 May 2010 00:18:08 +0000 (17:18 -0700)
extra/cuda/utils/utils.factor

index eef205992f2ded4733e0d4d2f31df8316c77ca86..a85a0b35e972d4e9725d2f438331f3b0b6912d81 100644 (file)
@@ -92,3 +92,5 @@ ERROR: throw-cuda-error n ;
 : function-shared-size ( n -- )
     [ cuda-function get ] dip
     cuFuncSetSharedSize cuda-error ;
+
+: distribute-jobs ( job-count per-job-shared -- grid-size block-size per-block-shared )