Prepare dph for a vectInfoVar type change
[packages/dph.git] / dph-examples / dph-examples.cabal
1
2
3 Name:                dph-examples
4 Version:             0.8.0.1
5 License:             BSD3
6 License-file:        LICENSE
7 Author:              The DPH Team
8 Maintainer:          Ben Lippmeier <benl@ouroborus.net>
9 Build-Type:          Simple
10 Cabal-Version:       >=1.8
11 Stability:           experimental
12 Category:            Data Structures
13 Homepage:            http://www.haskell.org/haskellwiki/GHC/Data_Parallel_Haskell
14 Description:         Data Parallel Haskell example programs.
15 Synopsis:            Data Parallel Haskell example programs.
16
17 -- Smoke ----------------------------------------------------------------------
18 -- examples/smoke/data
19 Executable dph-smoke-bool
20   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
21   Main-is:        Main.hs
22   other-modules:  Vectorised
23   hs-source-dirs: examples/smoke/data/Bool
24   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
25
26
27 -- examples/smoke/prims
28 Executable dph-smoke-concat
29   build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
30   main-is:        Main.hs
31   other-modules:  Vectorised
32   hs-source-dirs: examples/smoke/prims/Concat
33   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
34
35
36 Executable dph-smoke-sumsq
37   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
38   Main-is:        Main.hs
39   other-modules:  Vector
40                   Vectorised
41                   Timing Randomish
42   hs-source-dirs: examples/smoke/prims/SumSquares/dph lib
43   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
44  
45  
46 Executable dph-smoke-evens
47   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
48   Main-is:        Main.hs
49   other-modules:  Vector
50                   Vectorised
51                   Timing Randomish
52   hs-source-dirs: examples/smoke/prims/Evens/dph lib
53   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
54
55
56 -- examples/smoke/sharing
57 Executable dph-smoke-indices
58   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
59   Main-is:        Main.hs
60   other-modules:  Vectorised Vector
61   hs-source-dirs: examples/smoke/sharing/Indices lib
62   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
63  
64  
65 Executable dph-smoke-rank
66   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
67   Main-is:        Main.hs
68   other-modules:  Vectorised Util Timing Randomish
69   hs-source-dirs: examples/smoke/sharing/Rank lib
70   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
71
72
73 Executable dph-smoke-reverse
74   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
75   Main-is:        Main.hs
76   other-modules:  Vectorised Vector Randomish
77   hs-source-dirs: examples/smoke/sharing/Reverse lib
78   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
79
80
81 -- Imaginary ------------------------------------------------------------------
82 -- Executable dph-imaginary-primes
83 --   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
84 --   Main-is:        Main.hs
85 --   other-modules:  Vectorised
86 --   hs-source-dirs: examples/imaginary/Primes lib
87 --   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
88
89 Executable dph-imaginary-stringsearch
90   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
91   Main-is:        Main.hs
92   other-modules:  Vectorised
93                   Vector
94                   Timing
95   hs-source-dirs: examples/imaginary/StringSearch lib
96   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
97
98 Executable dph-imaginads
99   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
100   Main-is:        Main.hs
101   other-modules:  Vectorised
102   hs-source-dirs: examples/imaginary/Words lib
103   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
104
105
106 -- Spectral -------------------------------------------------------------------
107 Executable dph-spectral-closestpairs
108   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
109   Main-is:        Main.hs
110   other-modules:  Vector
111                   Vector1
112                   Vectorised1
113                   Timing
114                   Points2D.Types
115   hs-source-dirs: examples/spectral/ClosestPairs/dph lib
116   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
117
118 Executable dph-spectral-dotp
119   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
120   Main-is:        Main.hs
121   other-modules:  Vector
122                   Vectorised
123                   Timing Randomish
124   hs-source-dirs: examples/spectral/DotProduct/dph lib
125   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
126
127
128 -- Executable dph-spectral-smvm
129 --   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*, repa-flow == 3.2.*
130 --   Main-is:        Main.hs
131 --   other-modules:  Vectorised
132 --                   Vector
133 --                   Timing
134 --   hs-source-dirs: examples/spectral/SMVM/dph lib
135 --   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
136
137
138 Executable dph-spectral-quickhull
139   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
140   Main-is:        Main.hs
141   other-modules:  Vectorised
142                   Timing Points2D.Types SVG
143   hs-source-dirs: examples/spectral/QuickHull/dph examples/spectral/QuickHull/lib lib
144   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
145
146
147 Executable dph-spectral-quickhull-vector
148   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
149   Main-is:        Main.hs
150   other-modules:  QuickHullIO
151                   QuickHullSplit
152                   QuickHullVector
153                   Timing Points2D.Types SVG
154   hs-source-dirs: examples/spectral/QuickHull/vector examples/spectral/QuickHull/lib lib
155   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
156
157
158 -- Executable dph-spectral-quickhull-handvec
159 --   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*, dph-lifted-copy
160 --   Main-is:        Main.hs
161 --   other-modules:  Handvec
162 --                   HandvecWrp
163 --                   Timing Points2D.Types SVG
164 --   hs-source-dirs: examples/spectral/QuickHull/handvec examples/spectral/QuickHull/lib lib
165 --   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000 -hide-package dph-lifted-vseg
166
167
168 Executable dph-spectral-quicksort
169   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
170   Main-is:        Main.hs
171   other-modules:  Vectorised
172                   Timing
173   hs-source-dirs: examples/spectral/QuickSort/dph lib
174   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
175
176
177 Executable dph-spectral-quickselect
178   Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
179   Main-is:        Main.hs
180   other-modules:  Vectorised
181                   Vector
182                   Timing
183   hs-source-dirs: examples/spectral/QuickSelect/dph lib
184   ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
185
186
187 -- Real -----------------------------------------------------------------------
188 --Executable dph-real-nbody-gloss
189 --    Main-is:        MainGloss.hs
190 --    other-modules:  Common.Dump Common.World Common.Body Common.Util 
191 --                     Solver Solver.ListBH.Solver
192 --                            Solver.NestedBH.Solver
193 --                            Solver.VectorBH.Solver
194 --                            Solver.VectorNaive.Solver
195 --                     Timing Points2D.Types Points2D.Generate
196 --                     System.Console.ParseArgs
197 --                     Gloss.MainArgs Gloss.Draw Gloss.Config
198 --    Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*, gloss == 1.6.*
199 --    hs-source-dirs: examples/real/NBody examples/real/NBody/Gloss lib
200 --    ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
201
202 Executable dph-real-nbody
203     Main-is:        MainBatch.hs
204     other-modules:  Common.Dump Common.World Common.Body Common.Util 
205                     Solver Solver.ListBH.Solver
206                            Solver.NestedBH.Solver
207                            Solver.VectorBH.Solver
208                            Solver.VectorNaive.Solver
209                     Timing Points2D.Types Points2D.Generate
210                     Batch.MainArgs Batch.Config
211     Build-depends:  base == 4.7.*, vector == 0.11.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.8.*, dph-prim-par == 0.8.*, dph-lifted-vseg == 0.8.*, HUnit == 1.2.*
212     hs-source-dirs: examples/real/NBody examples/real/NBody/Batch lib
213     ghc-options:    -eventlog -rtsopts -threaded -fllvm -optlo-O3 -Odph -package dph-lifted-vseg -fcpr-off -fsimpl-tick-factor=1000
214