Skip to content

Latest commit

 

History

History
46 lines (25 loc) · 923 Bytes

README.rdoc

File metadata and controls

46 lines (25 loc) · 923 Bytes

ffi-opencl

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

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