uncomplicate.clojurecuda.toolbox

Various helpers that are not needed by ClojureCUDA itself, but may be very helpful in applications. See Neanderthal and Bayadera libraries for the examples of how to use them.

count-blocks

(count-blocks max-block-size n)

launch-reduce!

(launch-reduce! hstream main-kernel reduction-kernel main-params reduction-params n block-n)(launch-reduce! hstream main-kernel reduction-kernel main-params reduction-params n)(launch-reduce! hstream main-kernel reduction-kernel main-params reduction-params m n block-m block-n & [wgs-m wgs-n])

read-double

(read-double cu-buf)

read-float

(read-float cu-buf)

read-int

(read-int cu-buf)

read-long

(read-long cu-buf)