packages feed

gsl-random 0.1 → 0.1.1

raw patch · 2 files changed

+58/−6 lines, 2 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

README view
@@ -1,3 +1,5 @@-You may need to edit the cabal file to get the right libraries linked in. In-particular, you may need to change "cblas" to "gslcblas". Or, if you are using-ATLAS, you may need to add atlas at the end of the library list.+If you care at all about performance, make sure you configure the library+to use the best CBLAS installed on your system.  See the cabal file for+details. To use atlas, run++    runhaskell Setup.lhs configure -fatlas
gsl-random.cabal view
@@ -1,5 +1,5 @@ name:            gsl-random-version:         0.1+version:         0.1.1 homepage:        http://stat.stanford.edu/~patperry/code/gsl-random synopsis:        Bindings the the GSL random number generation facilities. description:@@ -18,6 +18,33 @@  extra-source-files:     README +-- Below are the flags for specifying which CBLAS to link with.  If no flag+-- is specified, the default is to use the unoptimized CBLAS that comes with +-- the GSL.  To use the "custom" flag, you must edit the section at the end of+-- the file with the name and location of the CBLAS library you want to use.++flag atlas+    description:    Link with ATLAS.+    default:        False++flag gsl+    description:    Link with GSL unoptimized CBLAS.+    default:        False++flag mkl+    description:    Link with Intel MKL.+    default:        False++flag veclib+    description:    Link with Mac OS X vecLib.+    default:        False+    +flag custom+    description:    Link with a custom CBLAS.  +    default:        False+    -- You must edit this file below to use this option.  ++ library     exposed-modules:    GSL.Random.Gen                         GSL.Random.Dist@@ -27,6 +54,29 @@     extensions:         ForeignFunctionInterface     build-depends:      base -    extra-libraries:    gsl cblas-    extra-lib-dirs:     /opt/local/lib+    if flag(atlas)+        extra-libraries:    gsl cblas atlas m+      +    if flag(gsl)+        extra-libraries:    gsl gslcblas m++    if flag(mkl)+      if arch(x86_64)+        extra-libraries:    gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core m+      else+        extra-libraries:    gsl mkl_lapack mkl_intel mkl_sequential mkl_core m++    if flag(veclib)+        extra-libraries:    gsl cblas m++    if flag(custom)+        -- CUSTOM CBLAS LIBS GO HERE+        extra-libraries:    +        +        -- PATH TO CUSTOM LIB DIR GOES HERE +        extra-lib-dirs:     +    +    -- fall back to gsl cblas if no flag is specified+    if !flag(atlas) && !flag(gsl) && !flag(mkl) && !flag(veclib) && !flag(custom)+        extra-libraries:    gsl gslcblas m