summaryrefslogtreecommitdiff
path: root/hmatrix.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r--hmatrix.cabal25
1 files changed, 16 insertions, 9 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal
index 89ddb8a..263064e 100644
--- a/hmatrix.cabal
+++ b/hmatrix.cabal
@@ -1,5 +1,5 @@
1Name: hmatrix 1Name: hmatrix
2Version: 0.2.1.0 2Version: 0.2.1.1
3License: GPL 3License: GPL
4License-file: LICENSE 4License-file: LICENSE
5Author: Alberto Ruiz 5Author: Alberto Ruiz
@@ -21,19 +21,19 @@ build-type: Simple
21flag splitBase 21flag splitBase
22 description: Choose the new smaller, split-up base package. 22 description: Choose the new smaller, split-up base package.
23 23
24flag mkl
25 description: Link with Intel's MKL optimized libraries.
26 default: False
27
24library 28library
25 if flag(splitBase) 29 if flag(splitBase)
26 build-depends: base >= 3, array, QuickCheck, HUnit, storable-complex 30 build-depends: base >= 3, array, QuickCheck, HUnit, storable-complex
27 else 31 else
28 build-depends: base < 3, QuickCheck, HUnit, storable-complex 32 build-depends: base < 3, QuickCheck, HUnit, storable-complex
29 33
30 if os(windows) 34 if !flag(mkl)
31 ghc-options: 35 if !os(x86_64)
32 else 36 ghc-options: -fvia-C
33 if arch(x86_64)
34 ghc-options:
35 else
36 ghc-options: -fvia-C
37 37
38 Build-Depends: haskell98 38 Build-Depends: haskell98
39 Extensions: ForeignFunctionInterface 39 Extensions: ForeignFunctionInterface
@@ -95,6 +95,13 @@ library
95 C-sources: lib/Data/Packed/Internal/auxi.c, 95 C-sources: lib/Data/Packed/Internal/auxi.c,
96 lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c, 96 lib/Numeric/LinearAlgebra/LAPACK/lapack-aux.c,
97 lib/Numeric/GSL/gsl-aux.c 97 lib/Numeric/GSL/gsl-aux.c
98 extra-libraries: gsl blas lapack 98 if flag(mkl)
99 if arch(x86_64)
100 extra-libraries: gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core
101 else
102 extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core
103 else
104 extra-libraries: gsl blas lapack
105
99 cc-options: -O4 106 cc-options: -O4
100 ghc-prof-options: -auto-all 107 ghc-prof-options: -auto-all