packages feed

cuda-0.7.0.0: cuda.cabal

Name:                   cuda
Version:                0.7.0.0
Synopsis:               FFI binding to the CUDA interface for programming NVIDIA GPUs
Description:
    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.
    .
    <http://developer.nvidia.com/cuda-downloads>
    .
    The configure script will look for your CUDA installation in the standard
    places, and if the nvcc compiler is found in your PATH, relative to that.
    .
    This library provides bindings to both the CUDA Driver and Runtime APIs. To
    get started, see one of:
    .
    * "Foreign.CUDA.Driver"
    .
    * "Foreign.CUDA.Runtime"
    .
    This release tested with versions 6.0, 6.5, and 7.0 of the CUDA toolkit.
    .
    For additional notes on installing on Windows, see:
    .
    <https://github.com/tmcdonell/cuda/blob/master/WINDOWS.markdown>
    .

License:                BSD3
License-file:           LICENSE
Copyright:              Copyright (c) [2009..2015]. Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Author:                 Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Maintainer:             Trevor L. McDonell <tmcdonell@cse.unsw.edu.au>
Homepage:               https://github.com/tmcdonell/cuda
Bug-reports:            https://github.com/tmcdonell/cuda/issues
Category:               Foreign
Cabal-version:          >= 1.22
Tested-with:            GHC >= 7.6

Build-type:             Custom

Extra-tmp-files:        cuda.buildinfo.generated
                        config.status
                        config.log

Extra-source-files:     cbits/stubs.h
                        CHANGELOG.markdown
                        README.markdown
                        WINDOWS.markdown

Library
  Exposed-Modules:      Foreign.CUDA
                        Foreign.CUDA.Ptr
                        Foreign.CUDA.Types
                        Foreign.CUDA.Analysis
                        Foreign.CUDA.Analysis.Device
                        Foreign.CUDA.Analysis.Occupancy
                        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.Stream
                        Foreign.CUDA.Runtime.Texture
                        Foreign.CUDA.Runtime.Utils
                        Foreign.CUDA.Driver
                        Foreign.CUDA.Driver.Context
                        Foreign.CUDA.Driver.Context.Base
                        Foreign.CUDA.Driver.Context.Config
                        Foreign.CUDA.Driver.Context.Peer
                        Foreign.CUDA.Driver.Context.Primary
                        Foreign.CUDA.Driver.Device
                        Foreign.CUDA.Driver.Error
                        Foreign.CUDA.Driver.Event
                        Foreign.CUDA.Driver.Exec
                        Foreign.CUDA.Driver.IPC.Event
                        Foreign.CUDA.Driver.IPC.Marshal
                        Foreign.CUDA.Driver.Marshal
                        Foreign.CUDA.Driver.Module
                        Foreign.CUDA.Driver.Module.Base
                        Foreign.CUDA.Driver.Module.Link
                        Foreign.CUDA.Driver.Module.Query
                        Foreign.CUDA.Driver.Stream
                        Foreign.CUDA.Driver.Texture
                        Foreign.CUDA.Driver.Utils

  Other-modules:        Foreign.CUDA.Internal.C2HS

  Include-dirs:         .
  C-sources:            cbits/stubs.c

  Build-tools:          c2hs >= 0.21
  Build-depends:
      base              >= 4 && < 5
    , bytestring
    , template-haskell

  default-language:     Haskell98
  Extensions:
  ghc-options:          -Wall -O2 -funbox-strict-fields -fwarn-tabs
  ghc-prof-options:     -fprof-auto -fprof-cafs


Executable nvidia-device-query
  Main-is:              DeviceQuery.hs
  hs-source-dirs:       examples/src/deviceQueryDrv

  Build-depends:
      base              >= 4 && < 5
    , cuda
    , pretty

  default-language:     Haskell98


source-repository head
    type:               git
    location:           https://github.com/tmcdonell/cuda