Metacl
DSL that generates C code for different computation platforms (pure C, OpenCL, Intel Phi)
Installation
Add this line to your application's Gemfile:
gem 'metacl'
And then execute:
$ bundle
Or install it yourself as:
$ gem install metacl
Usage
$ metacl some.mcl
Translates some.mcl to some.cpp. Example compile command for OS X (also you must have cl.hpp in OpenCL folder):
$ clang++ -framework OpenCL -stdlib=libc++ -std=gnu++11 some.cpp
Contributing
- Fork it ( http://github.com/
/metacl/fork ) - 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