The hopencl package

[Tags:bsd3, library, test]

The bindings follows version 1.1 of the OpenCL specification. Haddock documentation is available at http://projects.haskell.org/hopencl/

The following sections of the OpenCL specification are not supported currently:

In addition, the are not currently any Haskell wrappers for the following functions:

clCreateSubBuffer, clEnqueueReadBufferRect, clEnqueueWriteBufferRect, clEnqueueCopyBufferRect, clEnqueueMapBuffer, clEnqueueUnmapMemObject, clEnqueueNativeKernel


[Skip to Readme]

Properties

Versions 0.2.0, 0.2.1
Dependencies base (==4.*), bytestring [details]
License BSD3
Copyright Copyright (c) 2011-2014 Merijn Verstraaten, Martin Dybdal
Author Merijn Verstraaten <merijn@inconsistent.nl> (2014-present), Martin Dybdal <dybber@dybber.dk> (2011-2014)
Maintainer Merijn Verstraaten <merijn@inconsistent.nl>
Stability Unknown
Category Foreign
Home page https://github.com/merijn/hopencl
Bug tracker https://github.com/merijn/hopencl/issues
Source repository head: git clone http://github.com/merijn/hopencl
Uploaded Wed Mar 19 10:25:58 UTC 2014 by MerijnVerstraaten
Distributions NixOS:0.2.1
Downloads 582 total (5 in the last 30 days)
Votes
0 []
Status Docs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefaultType
debugEnable debugging messagesDisabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

For package maintainers and hackage trustees

Readme for hopencl

Readme for hopencl-0.2.1

hopencl

The present repository contains the latest snapshot of a set of Haskell bindings to version 1.1 of the OpenCL specification.

The following sections of the OpenCL specification are not supported currently:

  • Image Objects (section 5.3)
  • Sampler Objects (section 5.5)
  • Profiling of memory objects and kernels (section 5.12)
  • Extensions of the OpenCL standard involving the API
  • OpenGL and D3D related functions

In addition, the are not currently any Haskell wrappers for the following functions:

clCreateSubBuffer, clEnqueueReadBufferRect, clEnqueueWriteBufferRect, clEnqueueCopyBufferRect, clEnqueueMapBuffer, clEnqueueUnmapMemObject, clEnqueueNativeKernel

Installation

Installation is handled by cabal, but the tool c2hs is needed for compilation and should be installed prior to hopencl.

cabal install c2hs
cabal install

Examples

In examples-directory two simple examples of how the hopencl package can be used are shown. They can be executed using runhaskell

cd examples/PlatformInfo/
runhaskell PlatformInfo.hs
cd examples/VectorAdd/
runhaskell VectorAdd.hs

Documentation

Haddock documentation is available at http://projects.haskell.org/hopencl/

Tests

To compile the test suite, the flag --enable-tests must be given to cabal. The tests can then be executed using cabal test.

cabal install --enable-tests
cabal test

Questions and bug reports

Feel free to contact me by email at merijn@inconsistent.nl with any questions or bug reports.

Alternatively, bugs can be submitted through the bug tracker at: http://github.com/merijn/hopencl/issues