diff options
author | Alberto Ruiz <aruiz@um.es> | 2008-03-05 15:56:40 +0000 |
---|---|---|
committer | Alberto Ruiz <aruiz@um.es> | 2008-03-05 15:56:40 +0000 |
commit | 80be521adb679b3a41034269c35f0de4db698fab (patch) | |
tree | e9847d124453c7df4ea8cb27c4ef4fc150c93727 /hmatrix.cabal | |
parent | 4761a5f2e70a2d82c90f1d7896ab4b3638c507a1 (diff) |
add Intel's MKL support
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 25 |
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 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.2.1.0 | 2 | Version: 0.2.1.1 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -21,19 +21,19 @@ build-type: Simple | |||
21 | flag splitBase | 21 | flag splitBase |
22 | description: Choose the new smaller, split-up base package. | 22 | description: Choose the new smaller, split-up base package. |
23 | 23 | ||
24 | flag mkl | ||
25 | description: Link with Intel's MKL optimized libraries. | ||
26 | default: False | ||
27 | |||
24 | library | 28 | library |
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 |