hopencl: Haskell bindings for OpenCL

[ bsd3, foreign, library ] [ Propose Tags ]

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:

  • 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


[Skip to Readme]

Modules

[Last Documentation]

  • Foreign
    • OpenCL
      • Foreign.OpenCL.Bindings
        • Foreign.OpenCL.Bindings.CommandQueue
        • Foreign.OpenCL.Bindings.Context
        • Foreign.OpenCL.Bindings.Device
        • Foreign.OpenCL.Bindings.Event
        • Foreign.OpenCL.Bindings.Kernel
        • Foreign.OpenCL.Bindings.MemoryObject
        • Foreign.OpenCL.Bindings.Platform
        • Foreign.OpenCL.Bindings.Program
        • Foreign.OpenCL.Bindings.Synchronization
        • Foreign.OpenCL.Bindings.Types

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.2.0, 0.2.1
Dependencies base (>=4 && <5), bytestring [details]
License BSD-3-Clause
Copyright Copyright (c) 2011. Martin Dybdal, HIPERFIT research center, University of Copenhagen
Author Martin Dybdal <dybber@dybber.dk>
Maintainer Martin Dybdal <dybber@dybber.dk>
Category Foreign
Home page https://github.com/HIPERFIT/hopencl
Bug tracker https://github.com/HIPERFIT/hopencl/issues
Source repo head: git clone http://github.com/HIPERFIT/hopencl
Uploaded by MartinDybdal at 2011-12-04T10:36:44Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2040 total (6 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
All reported builds failed as of 2016-12-26 [all 8 reports]

Readme for hopencl-0.2.0

[back to package description]

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 dybber@dybber.dk with any questions or bug reports.

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