Thin abstraction layer over the Haskell OpenCL library.
Haskell C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src/Control/Parallel
.gitignore
CLUtil.cabal
LICENSE
README.markdown
Setup.hs

README.markdown

A thin abstraction layer over the OpenCL package that facilitates the use of OpenCL with Vectors.

Example usage:

import Control.Parallel.CLUtil
import qualified Data.Vector.Storable as V

test1 = do s <- ezInit CL_DEVICE_TYPE_CPU
           k <- kernelFromFile s "VecEZ.cl" "vecAdd" 
           let v1 = V.fromList [1,2,3,4::Float]
               v2 = V.fromList [5,6,7,8::Float]
           v3 <- runKernel s k v1 v2 (Out 4) (Work1D 1)
           print (v3::Vector Float)