Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/acowley/CLUtil
Thin abstraction layer over the Haskell OpenCL library.
https://github.com/acowley/CLUtil
Last synced: 2 months ago
JSON representation
Thin abstraction layer over the Haskell OpenCL library.
- Host: GitHub
- URL: https://github.com/acowley/CLUtil
- Owner: acowley
- License: bsd-3-clause
- Created: 2011-12-22T23:12:05.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2019-08-03T13:36:36.000Z (over 5 years ago)
- Last Synced: 2024-11-08T02:12:46.870Z (2 months ago)
- Language: Haskell
- Homepage:
- Size: 209 KB
- Stars: 6
- Watchers: 7
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.markdown
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
A thin abstraction layer over the [OpenCL
package](http://hackage.haskell.org/package/OpenCL) that facilitates
the use of OpenCL with Vectors.Example usage:
```haskell
import CLUtil
import qualified Data.Vector.Storable as Vtest1 = do s <- ezInit CL_DEVICE_TYPE_CPU
k <- kernelFromFile s "VecEZ.cl" "vecAdd"
runCL s $
do let v1 = V.fromList [1,2,3,4::Float]
v2 = V.fromList [5,6,7,8::Float]
v3 <- runKernel k v1 v2 (Out 4) (Work1D 1)
liftIO $ print (v3::Vector Float)
```