Just a short message to bring to your attention the release of opencl_ruby_ffi, OpenCL bindings for ruby based on FFI. They can be installed as a gem (gem install opencl_ruby_ffi). There is full coverage for 1.2 plus a lot of syntactic sugar mainly inspired from the ruby-opencl and pyopencl.
Homepage for the project can be found here: https://forge.imag.fr/projects/opencl-ruby/
It is an alpha release, and even though for my personal projects it works just fine, I am sure there are a lot of bugs/improvements remaining so feel free to contribute bug reports or comments (here or on the project page)
It is fully documented at the module/class/method level.
Just a short message to state that the package has been been updated for OpenCL 2.0, should someone with access to a 2.0 implementation be willing to try.
Brice[/QUOTE]
Hi Brice,
Do you have any working examples that I can use with this documentation? I’m eager to get started with it, no other Ruby implementation has worked for me so far.
Sorry to respond so late I had subscribed to this post but apparently something went wrong.
Here is a small sample of code showing how to create, execute a kernel, get data back and check for correctness.
Here is also attached a small script that use quite a bit of the features of opencl_ruby_ffi, it is used for non regression testing while developing the library.