e49b1a175542f94f006d7e67430b55f22eaf8c7f
[packages/dph.git] / dph-examples / dph-examples.cabal
1
2
3 Name:                dph-examples
4 Version:             0.6.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.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
21   Main-is:        Main.hs
22   other-modules:  Vectorised
23   hs-source-dirs: examples/smoke/data/Bool
24   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
25
26
27 -- examples/smoke/prims
28 Executable dph-smoke-concat
29   build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
30   main-is:        Main.hs
31   other-modules:  Vectorised
32   hs-source-dirs: examples/smoke/prims/Concat
33   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
34
35
36 Executable dph-smoke-sumsq
37   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, 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:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
44  
45  
46 Executable dph-smoke-evens
47   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, 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:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
54
55
56 -- examples/smoke/sharing
57 Executable dph-smoke-indices
58   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
59   Main-is:        Main.hs
60   other-modules:  Vectorised
61   hs-source-dirs: examples/smoke/sharing/Indices lib
62   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
63  
64  
65 Executable dph-smoke-rank
66   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, 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:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
71
72
73 Executable dph-smoke-reverse
74   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
75   Main-is:        Main.hs
76   other-modules:  Vectorised Randomish
77   hs-source-dirs: examples/smoke/sharing/Reverse lib
78   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
79
80
81 -- Imaginary ------------------------------------------------------------------
82 -- Executable dph-imaginary-primes
83 --   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
84 --   Main-is:        Main.hs
85 --   other-modules:  Vectorised
86 --   hs-source-dirs: examples/imaginary/Primes lib
87 --   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
88
89 Executable dph-imaginary-words
90   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
91   Main-is:        Main.hs
92   other-modules:  Vectorised
93   hs-source-dirs: examples/imaginary/Words lib
94   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
95
96
97 -- Spectral -------------------------------------------------------------------
98 Executable dph-spectral-dotp
99   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
100   Main-is:        Main.hs
101   other-modules:  Vector
102                   Vectorised
103                   Timing Randomish
104   hs-source-dirs: examples/spectral/DotProduct/dph lib
105   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
106
107
108 Executable dph-spectral-smvm
109   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
110   Main-is:        Main.hs
111   other-modules:  Vectorised
112                   Timing
113   hs-source-dirs: examples/spectral/SMVM/dph lib
114   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
115
116
117 --Executable dph-spectral-quickhull
118 --  Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
119 --  Main-is:        Main.hs
120 --  other-modules:  Vectorised
121 --                  Timing Points2D.Types SVG
122 --  hs-source-dirs: examples/spectral/QuickHull/dph examples/spectral/QuickHull/lib lib
123 --  ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
124
125
126 --Executable dph-spectral-quickhull-vector
127 --  Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
128 --  Main-is:        Main.hs
129 --  other-modules:  QuickHullIO
130 --                  QuickHullSplit
131 --                  QuickHullVector
132 --                  Timing Points2D.Types SVG
133 --  hs-source-dirs: examples/spectral/QuickHull/vector examples/spectral/QuickHull/lib lib
134 --  ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
135
136
137 Executable dph-spectral-quicksort
138   Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
139   Main-is:        Main.hs
140   other-modules:  Vectorised
141                   Timing
142   hs-source-dirs: examples/spectral/QuickSort/dph lib
143   ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
144
145
146 -- Real -----------------------------------------------------------------------
147 --Executable dph-real-nbody-gloss
148 --    Main-is:        MainGloss.hs
149 --    other-modules:  Common.Dump Common.World Common.Body Common.Util 
150 --                     Solver Solver.ListBH.Solver
151 --                            Solver.NestedBH.Solver
152 --                            Solver.VectorBH.Solver
153 --                            Solver.VectorNaive.Solver
154 --                     Timing Points2D.Types Points2D.Generate
155 --                     System.Console.ParseArgs
156 --                     Gloss.MainArgs Gloss.Draw Gloss.Config
157 --    Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*, gloss == 1.6.*
158 --    hs-source-dirs: examples/real/NBody examples/real/NBody/Gloss lib
159 --    ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
160
161 Executable dph-real-nbody
162     Main-is:        MainBatch.hs
163     other-modules:  Common.Dump Common.World Common.Body Common.Util 
164                     Solver Solver.ListBH.Solver
165                            Solver.NestedBH.Solver
166                            Solver.VectorBH.Solver
167                            Solver.VectorNaive.Solver
168                     Timing Points2D.Types Points2D.Generate
169                     Batch.MainArgs Batch.Config
170     Build-depends:  base == 4.6.*, vector == 0.9.*, random == 1.0.*, old-time == 1.1.*, containers == 0.5.*, dph-base == 0.6.*, dph-prim-par == 0.6.*, dph-lifted-vseg == 0.6.*, HUnit == 1.2.*
171     hs-source-dirs: examples/real/NBody examples/real/NBody/Batch lib
172     ghc-options:    -rtsopts -threaded -fllvm -Odph -package dph-lifted-vseg -fcpr-off -fno-liberate-case -fsimpl-tick-factor=1000
173