Commit 304e3389 authored by dterei's avatar dterei

Remove fibon specific files

parent 9b7ef0e7
Name: Blur
Version: 1.1.1.0
License: BSD3
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures
Homepage: http://trac.haskell.org/repa
Bug-reports: http://trac.haskell.org/repa/newticket
Description:
Examples using the Repa array library.
Synopsis:
Examples using the Repa array library.
Executable repa-blur
Build-depends:
base == 4.*,
dph-prim-par,
dph-base,
-- for reap-io
bytestring,
binary,
old-time,
-- for QuickCheck
random,
ghc,
mtl,
extensible-exceptions,
-- for repa
dph-prim-seq,
-- for repa-algorithms
vector
Main-is: src/Main.hs
hs-source-dirs: .
../_RepaLib/repa
../_RepaLib/repa-algorithms
../_RepaLib/repa-io
../_RepaLib/bmp
../_RepaLib/repa-bytestring
../_RepaLib/quickcheck
Name: FFT2d
Version: 1.1.1.0
License: BSD3
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures
Homepage: http://trac.haskell.org/repa
Bug-reports: http://trac.haskell.org/repa/newticket
Description:
Examples using the Repa array library.
Synopsis:
Examples using the Repa array library.
Executable repa-fft2d
Build-depends:
base == 4.*,
dph-prim-par,
dph-base,
-- for reap-io
bytestring,
binary,
old-time,
-- for QuickCheck
random,
ghc,
mtl,
extensible-exceptions,
-- for repa
dph-prim-seq
Main-is: src/FFT/HighPass2d/src/Main.hs
hs-source-dirs: .
../_RepaLib/repa
../_RepaLib/repa-algorithms
../_RepaLib/repa-io
../_RepaLib/bmp
../_RepaLib/repa-bytestring
../_RepaLib/quickcheck
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Fibon.Benchmarks.Repa.FFT2d.Fibon.Instance(
mkInstance
)
where
import Fibon.BenchmarkInstance
sharedConfig = BenchmarkInstance {
flagConfig = FlagConfig {
configureFlags = ["--ghc-option=-threaded"]
, buildFlags = []
, runFlags = []
}
, stdinInput = Nothing
, output = [(OutputFile "out.bmp", Diff "out.expected.bmp")]
, exeName = "repa-fft2d"
}
flgCfg = flagConfig sharedConfig
mkInstance Test = sharedConfig {
flagConfig = flgCfg {runFlags = words "1 step20.bmp out.bmp"}
}
mkInstance Ref = sharedConfig {
flagConfig = flgCfg {runFlags = words "1 lena.bmp out.bmp"}
}
Name: FFT3d
Version: 1.1.1.0
License: BSD3
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures
Homepage: http://trac.haskell.org/repa
Bug-reports: http://trac.haskell.org/repa/newticket
Description:
Examples using the Repa array library.
Synopsis:
Examples using the Repa array library.
Executable repa-fft3d
Build-depends:
base == 4.*,
dph-prim-par,
dph-base,
-- for reap-io
bytestring,
binary,
old-time,
-- for QuickCheck
random,
ghc,
mtl,
extensible-exceptions,
-- for repa
dph-prim-seq
Main-is: src/FFT/HighPass3d/src/Main.hs
hs-source-dirs: .
../_RepaLib/repa
../_RepaLib/repa-algorithms
../_RepaLib/repa-io
../_RepaLib/bmp
../_RepaLib/repa-bytestring
../_RepaLib/quickcheck
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Fibon.Benchmarks.Repa.FFT3d.Fibon.Instance(
mkInstance
)
where
import Fibon.BenchmarkInstance
sharedConfig = BenchmarkInstance {
flagConfig = FlagConfig {
configureFlags = ["--ghc-option=-threaded"]
, buildFlags = []
, runFlags = []
}
, stdinInput = Nothing
, output = [(OutputFile "output000.bmp", Diff "output.expected.bmp")]
, exeName = "repa-fft3d"
}
flgCfg = flagConfig sharedConfig
mkInstance Test = sharedConfig {
flagConfig = flgCfg {runFlags = words "2 output"}
}
mkInstance Ref = sharedConfig {
flagConfig = flgCfg {runFlags = words "128 output"}
}
......@@ -20,6 +20,8 @@ main
_ -> putStr $ unlines
[ "Usage: repa-fft-highpass <cutoff::Int> <fileIn.bmp> <fileOut.bmp>"
, ""
, " Image dimensions must be powers of two, eg 128x512 or 64x256"
, "" ]
......@@ -37,7 +39,7 @@ mainWithArgs cutoff fileIn fileOut
`deepSeqArray` return ()
-- Do the transform on each component individually
((arrRed', arrGreen', arrBlue'), t)
((arrRed', arrGreen', arrBlue'), _)
<- time
$ let arrRed' = transform cutoff arrRed
arrGreen' = transform cutoff arrGreen
......@@ -48,7 +50,7 @@ mainWithArgs cutoff fileIn fileOut
`deepSeqArray` return (arrRed', arrGreen', arrBlue')
-- putStr (prettyTime t)
putStrLn "Done"
putStrLn "Done"
-- Write it back to file.
writeComponentsToBMP fileOut
......
TOP = ../../..
include $(TOP)/mk/boilerplate.mk
SRCS = ../_RepaLib/bmp/Codec/BMP/CIEXYZ.hs \
../_RepaLib/bmp/Codec/BMP/Error.hs \
SRCS = ../_RepaLib/bmp/Codec/BMP/Base.hs \
../_RepaLib/bmp/Codec/BMP/BitmapInfo.hs \
../_RepaLib/bmp/Codec/BMP/BitmapInfoV3.hs \
../_RepaLib/bmp/Codec/BMP/FileHeader.hs \
../_RepaLib/bmp/Codec/BMP/BitmapInfoV4.hs \
../_RepaLib/bmp/Codec/BMP/BitmapInfoV5.hs \
../_RepaLib/bmp/Codec/BMP/BitmapInfo.hs \
../_RepaLib/bmp/Codec/BMP/Base.hs \
../_RepaLib/bmp/Codec/BMP/Unpack.hs \
../_RepaLib/bmp/Codec/BMP/Pack.hs \
../_RepaLib/bmp/Codec/BMP/CIEXYZ.hs \
../_RepaLib/bmp/Codec/BMP/Compression.hs \
../_RepaLib/bmp/Codec/BMP/Error.hs \
../_RepaLib/bmp/Codec/BMP/FileHeader.hs \
../_RepaLib/bmp/Codec/BMP.hs \
../_RepaLib/bmp/Codec/BMP/Pack.hs \
../_RepaLib/bmp/Codec/BMP/Unpack.hs \
../_RepaLib/quickcheck/Test/QuickCheck/All.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Arbitrary.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Exception.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Text.hs \
../_RepaLib/quickcheck/Test/QuickCheck/State.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Function.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Gen.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Arbitrary.hs \
../_RepaLib/quickcheck/Test/QuickCheck.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Modifiers.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Monadic.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Poly.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Property.hs \
../_RepaLib/quickcheck/Test/QuickCheck/State.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Test.hs \
../_RepaLib/quickcheck/Test/QuickCheck.hs \
../_RepaLib/repa/Data/Array/Repa/QuickCheck.hs \
../_RepaLib/repa/Data/Array/Repa/Shape.hs \
../_RepaLib/repa/Data/Array/Repa/Index.hs \
../_RepaLib/repa/Data/Array/Repa/Slice.hs \
../_RepaLib/repa/Data/Array/Repa.hs \
../_RepaLib/repa-bytestring/Data/Array/Repa/ByteString.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Timing.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/BMP.hs \
../_RepaLib/quickcheck/Test/QuickCheck/Text.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/Complex.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/Convolve.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/DFT/Center.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/DFT.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/DFT/Roots.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/FFT.hs \
src/FFT/HighPass2d/src/Main.hs
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/Iterate.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/Matrix.hs \
../_RepaLib/repa-algorithms/Data/Array/Repa/Algorithms/Randomish.hs \
../_RepaLib/repa-bytestring/Data/Array/Repa/ByteString.hs \
../_RepaLib/repa/Data/Array/Repa/Arbitrary.hs \
../_RepaLib/repa/Data/Array/Repa.hs \
../_RepaLib/repa/Data/Array/Repa/Index.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/Base.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/Elt.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/EvalBlockwise.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/EvalChunked.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/EvalCursored.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/EvalReduction.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/Forcing.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/Gang.hs \
../_RepaLib/repa/Data/Array/Repa/Internals/Select.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/IndexSpace.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Interleave.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Mapping.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Modify.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Reduction.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Select.hs \
../_RepaLib/repa/Data/Array/Repa/Operators/Traverse.hs \
../_RepaLib/repa/Data/Array/Repa/Properties.hs \
../_RepaLib/repa/Data/Array/Repa/Shape.hs \
../_RepaLib/repa/Data/Array/Repa/Slice.hs \
../_RepaLib/repa/Data/Array/Repa/Specialised/Dim2.hs \
../_RepaLib/repa/Data/Array/Repa/Stencil/Base.hs \
../_RepaLib/repa/Data/Array/Repa/Stencil.hs \
../_RepaLib/repa/Data/Array/Repa/Stencil/Template.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Binary.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/BMP.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/ColorRamp.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Internals/Text.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Matrix.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Timing.hs \
../_RepaLib/repa-io/Data/Array/Repa/IO/Vector.hs \
Main.hs
PROG_ARGS += 1 lena.bmp out.bmp
HC_OPTS += -threaded -i. -i../_RepaLib/repa -i../_RepaLib/repa-algorithms -i../_RepaLib/repa-io -i../_RepaLib/bmp -i../_RepaLib/repa-bytestring -i../_RepaLib/quickcheck -package base -package binary -package bytestring -package dph-base -package dph-prim-par -package dph-prim-seq -package extensible-exceptions -package ghc -package mtl -package old-time -package random
HC_OPTS += -threaded -i. -i../_RepaLib/repa -i../_RepaLib/repa-algorithms -i../_RepaLib/repa-io -i../_RepaLib/bmp -i../_RepaLib/repa-bytestring -i../_RepaLib/quickcheck -package base -package binary -package bytestring -package dph-base -package dph-prim-par -package dph-prim-seq -package extensible-exceptions -package ghc -package mtl -package old-time -package random -package vector
CLEAN_FILES += out.bmp
include $(TOP)/mk/target.mk
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Fibon.Benchmarks.Repa.Laplace.Fibon.Instance(
mkInstance
)
where
import Fibon.BenchmarkInstance
sharedConfig = BenchmarkInstance {
flagConfig = FlagConfig {
configureFlags = ["--ghc-option=-threaded"]
, buildFlags = []
, runFlags = []
}
, stdinInput = Nothing
, output = [(OutputFile "laplace.bmp", Diff "laplace.expected.bmp")]
, exeName = "repa-laplace"
}
flgCfg = flagConfig sharedConfig
mkInstance Test = sharedConfig {
flagConfig = flgCfg {runFlags = words "10 pls-100x100.bmp laplace.bmp"}
}
mkInstance Ref = sharedConfig {
flagConfig = flgCfg {runFlags = words "1000 pls-400x400.bmp laplace.bmp"}
}
Name: Laplace
Version: 1.1.1.0
License: BSD3
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures
Homepage: http://trac.haskell.org/repa
Bug-reports: http://trac.haskell.org/repa/newticket
Description:
Examples using the Repa array library.
Synopsis:
Examples using the Repa array library.
Executable repa-laplace
Build-depends:
base == 4.*,
dph-prim-par,
dph-base,
-- for reap-io
bytestring,
binary,
old-time,
-- for QuickCheck
random,
ghc,
mtl,
extensible-exceptions,
-- for repa
dph-prim-seq
Main-is: src/Laplace/src/Main.hs
hs-source-dirs: .
../_RepaLib/repa
../_RepaLib/repa-algorithms
../_RepaLib/repa-io
../_RepaLib/bmp
../_RepaLib/repa-bytestring
../_RepaLib/quickcheck
src/Laplace/src
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
module Fibon.Benchmarks.Repa.MMult.Fibon.Instance(
mkInstance
)
where
import Fibon.BenchmarkInstance
sharedConfig = BenchmarkInstance {
flagConfig = FlagConfig {
configureFlags = ["--ghc-option=-threaded"]
, buildFlags = []
, runFlags = []
}
, stdinInput = Nothing
, output = [(Stdout, Diff "repa-mmult.stdout.expected")]
, exeName = "repa-mmult"
}
flgCfg = flagConfig sharedConfig
mkInstance Test = sharedConfig {
flagConfig = flgCfg {runFlags = words "-random 10 10 -random 10 10"}
}
mkInstance Ref = sharedConfig {
flagConfig = flgCfg {runFlags = words "-random 1000 1000 -random 1000 1000"}
}
Name: MMult
Version: 1.1.1.0
License: BSD3
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>
Build-Type: Simple
Cabal-Version: >=1.6
Stability: experimental
Category: Data Structures
Homepage: http://trac.haskell.org/repa
Bug-reports: http://trac.haskell.org/repa/newticket
Description:
Examples using the Repa array library.
Synopsis:
Examples using the Repa array library.
Executable repa-mmult
Build-depends:
base == 4.*,
dph-prim-par,
dph-base,
-- for reap-io
bytestring,
binary,
old-time,
-- for QuickCheck
random,
ghc,
mtl,
extensible-exceptions,
-- for repa
dph-prim-seq
Main-is: src/MMult/src/Main.hs
hs-source-dirs: .
../_RepaLib/repa
../_RepaLib/repa-algorithms
../_RepaLib/repa-io
../_RepaLib/bmp
../_RepaLib/repa-bytestring
../_RepaLib/quickcheck
Name: bmp
Version: 1.2.0.2
License: MIT
License-file: LICENSE
Author: Ben Lippmeier
Maintainer: benl@ouroborus.net
Build-Type: Simple
Cabal-Version: >=1.6
Stability: stable
Category: Codec
Homepage: http://code.ouroborus.net/bmp
Bug-reports: bmp@ouroborus.net
Description:
Read and write uncompressed BMP image files. 100% robust Haskell implementation.
Synopsis:
Read and write uncompressed BMP image files.
Tested-with: GHC == 7.2
Library
Build-Depends:
base >= 4 && < 5,
bytestring >= 0.9.1.5 && < 1.0.0.0,
binary >= 0.5.0.2 && < 0.6.0.0
ghc-options:
-Wall -fno-warn-missing-signatures
Exposed-modules:
Codec.BMP
Other-modules:
Codec.BMP.Base
Codec.BMP.Compression
Codec.BMP.BitmapInfo
Codec.BMP.BitmapInfoV3
Codec.BMP.BitmapInfoV4
Codec.BMP.BitmapInfoV5
Codec.BMP.CIEXYZ
Codec.BMP.Error
Codec.BMP.FileHeader
Codec.BMP.Pack
Codec.BMP.Unpack
Name: QuickCheck
Version: 2.4.2
Cabal-Version: >= 1.6
Build-type: Simple
License: BSD3
License-file: LICENSE
Extra-source-files: README
Copyright: 2000-2011 Koen Claessen, 2006-2008 Björn Bringert, 2009-2011 Nick Smallbone
Author: Koen Claessen <koen@chalmers.se>
Maintainer: QuickCheck developers <quickcheck@projects.haskell.org>
Bug-reports: mailto:quickcheck@projects.haskell.org
Tested-with: GHC >=6.8, Hugs
Homepage: http://code.haskell.org/QuickCheck
Category: Testing
Synopsis: Automatic testing of Haskell programs
Description:
QuickCheck is a library for random testing of program properties.
.
The programmer provides a specification of the program, in
the form of properties which functions should satisfy, and
QuickCheck then tests that the properties hold in a large number
of randomly generated cases.
.
Specifications are expressed in
Haskell, using combinators defined in the QuickCheck library.
QuickCheck provides combinators to define properties, observe
the distribution of test data, and define test
data generators.
source-repository head
type: darcs
location: http://code.haskell.org/QuickCheck/devel
source-repository this
type: darcs
location: http://code.haskell.org/QuickCheck/stable
tag: 2.4.2
flag base3
Description: Choose the new smaller, split-up base package.
flag base4
Description: Choose the even newer base package with extensible exceptions.
flag templateHaskell
Description: Build Test.QuickCheck.All, which uses Template Haskell.
library
-- Choose which library versions to use.
if flag(base4)
Build-depends: base >= 4 && < 5, random
else
if flag(base3)
Build-depends: base >= 3 && < 4, random
else
Build-depends: base < 3
-- On old versions of GHC use the ghc package to catch ctrl-C.
if impl(ghc >= 6.7) && impl(ghc < 6.13)
Build-depends: ghc
-- We want to use extensible-exceptions even if linking against base-3.
if impl(ghc >= 6.9)
Build-depends: extensible-exceptions
-- Modules that are always built.
Exposed-Modules:
Test.QuickCheck,
Test.QuickCheck.Arbitrary,
Test.QuickCheck.Gen,
Test.QuickCheck.Monadic,
Test.QuickCheck.Modifiers,
Test.QuickCheck.Property,
Test.QuickCheck.Test,
Test.QuickCheck.Text,
Test.QuickCheck.Poly,
Test.QuickCheck.State
-- Choose which optional features to build based on which compiler
-- we're using. It would be nice to use flags for this but Cabal's
-- dependency resolution isn't good enough.
if impl(ghc)
Exposed-Modules: Test.QuickCheck.Function
if flag(templateHaskell) && impl(ghc >= 6.12)
Build-depends: template-haskell >= 2.4
Exposed-Modules: Test.QuickCheck.All
-- GHC < 7.0 doesn't cope with multiple LANGUAGE pragmas in the same
-- file, I think...
if impl(ghc < 7)
Extensions: GeneralizedNewtypeDeriving, MultiParamTypeClasses, Rank2Types, TypeOperators
else
-- If your Haskell compiler can cope without some of these, please
-- send a message to the QuickCheck mailing list!
cpp-options: -DNO_TIMEOUT -DNO_NEWTYPE_DERIVING
if !impl(hugs)
cpp-options: -DNO_ST_MONAD -DNO_MULTI_PARAM_TYPE_CLASSES
Other-Modules:
Test.QuickCheck.Exception
GHC-options:
Name: repa-algorithms
Version: 2.2.0.1
License: BSD3
License-file: LICENSE
Author: The DPH Team
Maintainer: Ben Lippmeier <benl@ouroborus.net>