An automatically generated FFI for OpenCL
C Ruby
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
interfaces
lib
spec
tasks
test
.document
.gitignore
LICENSE
README.rdoc
Rakefile
VERSION
ffi-opencl.gemspec

README.rdoc

ffi-opencl

This is an automatically generated ffi to OpenCL. There are no rubyisms to make the OpenCL API easier to use.

Copyright

Copyright © 2009 Martin Hess. See LICENSE for details.

Installation

[sudo] gem install ffi-opencl

or you can get it off github:

[sudo] gem install hessml-ffi-opencl –source gems.github.com

Or you can permanently add github to your gemservers with:

gem sources -a gems.github.com [sudo] gem install ffi-opencl

Non Ruby dependencies

You need these to use the gem:

  • libffi

  • OpenCL Driver

Gem development

You need this non-ruby executable if you want to work on the gem:

  • swig

On a Mac this can be installed with:

sudo port install libffi swig Additionally, you will need the ruby gem:

  • ffi-swig-generator

TODO

  • Test cases to help verify that it works correctly on different OSs and CPU architectures

  • More and better examples