TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'heikou'
And then execute:
$ bundle
Or install it yourself as:
$ gem install heikou
TODO: Write usage instructions here
require 'heikou'
Heikou::CL.create do |cl|
source = File.read('/tmp/vecadd.cl')
vecadd = cl.create_program(source).to_kernel
a = b = (0...4096).map(&:float)
c = cl.create_buffer :float, 4096
vecadd[a, b, c]
p c.to_a
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request