rust-opencl
rust-opencl copied to clipboard
Prefix sums and generic elementwise kernels
In line with pyopencl, it would be very useful to have support for prefix sums and ad hoc elementwise kernels. Do you consider rust-opencl the right place, or would you rather like to see a separate library to support such higher level functionality?
It may not hurt to build some simple ones into rust-opencl. If nothing else, they'd serve as examples of how to write and use kernels.
For a while now, I've been tossing around the idea of doing something like Accelerate in Rust. The idea is you build up an expression data structure at runtime and then run some optimization passes on it and ultimately generate a CPU kernel to perform the computation. This is definitely something I'd say should go in a different library though.