Haskell high-level wrapper for OpenCL https://github.com/IFCA/opencl
|Latest on Hackage:||220.127.116.11|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
A high-level OpenCL library for Haskell.
Based on the [[http://hackage.haskell.org/package/OpenCLRaw][OpenCLRaw]] package by J.R. Heard.
By Luis Cabellos at [[http://www.ifca.es/en/home2][IFCA]]
*Requirements:* [[http://hackage.haskell.org/package/c2hs][c2hs]] must be installed. (Try ~cabal install c2hs~.)
With the usual commands to install as a user library:
: cabal install --user
Programs using the library must link against OpenCL; for example, by
passing ~-lOpenCL~ to GHC.
*** About versioning
OpenCL module uses Package Version Policy:
But It differs in the A version number. It use OpenCL API version as A
number, so 18.104.22.168 correspond to A=1.0=OpenCL API version 1.0, B=3 and
C=0. The major version number is 1.0.3
** Optional Requisites
Some OpenCL libraries require additional NUMA libraries. For instance,
on Ubuntu 11.04:
: sudo apt-get install libnuma1 libnuma-dev
There is an simple working example in the examples folder. You can create an
: ghc --make examples/example01.hs
** Using ghci
It's possible to use GHCi with OpenCL, e.g.:
: ghci examples/example01.hs