-
Notifications
You must be signed in to change notification settings - Fork 3
/
accelerate-blas.cabal
55 lines (49 loc) · 2.1 KB
/
accelerate-blas.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: accelerate-blas
version: 0.1.0.0
synopsis: Binding to the CUDA BLAS routines for Accelerate arrays
description: CUBLAS routines for Accelerate
homepage: http://github.com/alpmestan/accelerate-blas
license: BSD3
license-file: LICENSE
author: Alp Mestanogullari
maintainer: alpmestan@gmail.com
copyright: 2013 Alp Mestanogullari
category: Math
build-type: Simple
-- extra-source-files:
cabal-version: >=1.10
Flag cuda
Description: Enable support for using CUBLAS via the CUDA backend's
FFI
Default: True
library
exposed-modules: Data.Array.Accelerate.BLAS,
Data.Array.Accelerate.BLAS.Level1
other-modules: Data.Array.Accelerate.BLAS.Internal.Dot,
Data.Array.Accelerate.BLAS.Internal.Common,
Data.Array.Accelerate.BLAS.Internal.Axpy,
Data.Array.Accelerate.BLAS.Internal.Asum,
Data.Array.Accelerate.BLAS.Internal.Nrm2,
Data.Array.Accelerate.BLAS.Internal.Scal
build-depends: base ==4.6.*,
accelerate == 0.14.*
if flag(cuda)
CPP-options: -DACCELERATE_CUDA_BACKEND
build-depends: accelerate-cuda == 0.14.*,
cublas == 0.1.*,
cuda == 0.5.*
ghc-options: -Wall -O2 -funbox-strict-fields -fwarn-tabs
hs-source-dirs: src
default-language: Haskell2010
executable accelerate-blas-test
main-is: accelerate-blas-test.hs
ghc-options: -Wall -O2 -threaded -rtsopts -funbox-strict-fields -fwarn-tabs
build-depends: base >= 4 && < 5,
accelerate == 0.14.*
default-language: Haskell2010
if flag(cuda)
CPP-options: -DACCELERATE_CUDA_BACKEND
build-depends: cublas == 0.1.*,
cuda == 0.5.*,
accelerate-blas == 0.1.*,
accelerate-cuda == 0.14.*