The cuda package

[Tags:bsd3, library, program]

The CUDA library provides a direct, general purpose C-like SPMD programming model for NVIDIA graphics cards (G8x series onwards). This is a collection of bindings to allow you to call and control, although not write, such functions from Haskell land. You will need to install the CUDA driver and developer toolkit (tested with v2.3).

Note that on Snow Leopard, the c2hs preprocessor is confused by the notation for Apple's Blocks extension, so to work around this:

cabal install --c2hs-option=-ccpp-4.0


Versions 0.1, 0.2, 0.2.1, 0.2.2, 0.3.2,,,,,,,,,,,,,,,,,,,,,,,,, (info)
Dependencies base (>=3 && <5), bytestring, extensible-exceptions, haskell98 [details]
License BSD3
Copyright Copyright (c) 2009-10. Trevor L. McDonell <>
Author Trevor L. McDonell <>
Maintainer Trevor L. McDonell <>
Category Foreign
Uploaded Thu Feb 18 02:42:56 UTC 2010 by TrevorMcDonell
Distributions NixOS:
Downloads 9056 total (109 in the last 30 days)
0 []
Status Docs not available [build log]
All reported builds failed as of 2016-12-30 [all 8 reports]
Hackage Matrix CI


  • Foreign
    • Foreign.CUDA
      • Foreign.CUDA.Driver
        • Foreign.CUDA.Driver.Context
        • Foreign.CUDA.Driver.Device
        • Foreign.CUDA.Driver.Error
        • Foreign.CUDA.Driver.Event
        • Foreign.CUDA.Driver.Exec
        • Foreign.CUDA.Driver.Marshal
        • Foreign.CUDA.Driver.Module
        • Foreign.CUDA.Driver.Stream
        • Foreign.CUDA.Driver.Utils
      • Foreign.CUDA.Runtime
        • Foreign.CUDA.Runtime.Device
        • Foreign.CUDA.Runtime.Error
        • Foreign.CUDA.Runtime.Event
        • Foreign.CUDA.Runtime.Exec
        • Foreign.CUDA.Runtime.Marshal
        • Foreign.CUDA.Runtime.Ptr
        • Foreign.CUDA.Runtime.Stream
        • Foreign.CUDA.Runtime.Thread
        • Foreign.CUDA.Runtime.Utils


Maintainer's Corner

For package maintainers and hackage trustees