diff options
author | Don Stewart <dons@galois.com> | 2008-06-10 00:53:03 +0000 |
---|---|---|
committer | Don Stewart <dons@galois.com> | 2008-06-10 00:53:03 +0000 |
commit | 9cb72979acc7bcd9df2fa8eab05169d9c5ca84f5 (patch) | |
tree | 52cb0810dc6fbcd199d40146df1f7afebb2171ef /hmatrix.cabal | |
parent | 8fdd2158ab7a122e9c72a7f41c8bac1a794cf53c (diff) |
Unpack Matrix type, and add -funsafe flag
-funsafe optionally compiles out the bounds checks on indexing matrices
and vectors. Yields good speedups on tight loops. Not enabled by default.
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index 2633980..f39b862 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -25,6 +25,10 @@ flag mkl | |||
25 | description: Link with Intel's MKL optimized libraries. | 25 | description: Link with Intel's MKL optimized libraries. |
26 | default: False | 26 | default: False |
27 | 27 | ||
28 | flag unsafe | ||
29 | description: Compile the library with bound checking disabled. | ||
30 | default: False | ||
31 | |||
28 | library | 32 | library |
29 | if flag(splitBase) | 33 | if flag(splitBase) |
30 | build-depends: base >= 3, array, QuickCheck, HUnit, storable-complex | 34 | build-depends: base >= 3, array, QuickCheck, HUnit, storable-complex |
@@ -36,7 +40,8 @@ library | |||
36 | ghc-options: -fvia-C | 40 | ghc-options: -fvia-C |
37 | 41 | ||
38 | Build-Depends: haskell98 | 42 | Build-Depends: haskell98 |
39 | Extensions: ForeignFunctionInterface | 43 | Extensions: ForeignFunctionInterface, |
44 | CPP | ||
40 | 45 | ||
41 | hs-source-dirs: lib | 46 | hs-source-dirs: lib |
42 | Exposed-modules: Data.Packed, | 47 | Exposed-modules: Data.Packed, |
@@ -107,3 +112,7 @@ library | |||
107 | 112 | ||
108 | cc-options: -O4 | 113 | cc-options: -O4 |
109 | ghc-prof-options: -auto-all | 114 | ghc-prof-options: -auto-all |
115 | |||
116 | if flag(unsafe) | ||
117 | cpp-options: -DUNSAFE | ||
118 | |||