diff options
-rw-r--r-- | README | 3 | ||||
-rw-r--r-- | hmatrix.cabal | 8 |
2 files changed, 10 insertions, 1 deletions
@@ -105,4 +105,5 @@ in the Haskell mailing lists for their help. | |||
105 | - Reiner Pope added support for luSolve, based on (d|z)getrs. | 105 | - Reiner Pope added support for luSolve, based on (d|z)getrs. |
106 | 106 | ||
107 | - Simon Beaumont reported the need of QuickCheck<2 and the invalid | 107 | - Simon Beaumont reported the need of QuickCheck<2 and the invalid |
108 | asm("finit") on ppc. | 108 | asm("finit") on ppc. He also contributed the configuration options |
109 | for the accelerate framework on OS X. | ||
diff --git a/hmatrix.cabal b/hmatrix.cabal index 114be5d..516e6b5 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -23,6 +23,10 @@ flag mkl | |||
23 | description: Link with Intel's MKL optimized libraries. | 23 | description: Link with Intel's MKL optimized libraries. |
24 | default: False | 24 | default: False |
25 | 25 | ||
26 | flag accelerate | ||
27 | description: Use the accelerate framework for LAPACK/BLAS on OS X | ||
28 | default: False | ||
29 | |||
26 | flag unsafe | 30 | flag unsafe |
27 | description: Compile the library with bound checking disabled. | 31 | description: Compile the library with bound checking disabled. |
28 | default: False | 32 | default: False |
@@ -110,6 +114,10 @@ library | |||
110 | else | 114 | else |
111 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core | 115 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core |
112 | else | 116 | else |
117 | if flag(accelerate) | ||
118 | frameworks: Accelerate | ||
119 | extra-libraries: gsl | ||
120 | else | ||
113 | 121 | ||
114 | extra-libraries: gsl lapack | 122 | extra-libraries: gsl lapack |
115 | 123 | ||