-
Notifications
You must be signed in to change notification settings - Fork 3
/
nikola.cabal
269 lines (239 loc) · 7.76 KB
/
nikola.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
name: nikola
version: 0.9
cabal-version: >= 1.10
license: BSD3
license-file: LICENSE
copyright: (c) 2009-2010 Harvard University
(c) 2011-2012 Geoffrey Mainland
author: Geoffrey Mainland <[email protected]>
maintainer: [email protected]
stability: alpha
homepage: http://www.eecs.harvard.edu/~mainland/projects/nikola
category: Language
synopsis: Embedded language for GPU computation
build-type: Custom
extra-tmp-files:
config.status
config.log
nikola.buildinfo
include/Nikola.h
extra-source-files:
configure
configure.ac
config.guess
config.sub
install-sh
nikola.buildinfo.in
include/Nikola.h.in
extra-source-files:
internal/GenUnboxTuple.hs
internal/unbox-tuple-instances
flag examples
description: Build example programs.
default: False
flag optimize
description: Build optimized versions of the example programs.
default: False
library
exposed-modules:
Data.Array.Nikola.Array
Data.Array.Nikola.Backend.C.Codegen
Data.Array.Nikola.Backend.C.Monad
Data.Array.Nikola.Backend.C.Quoters
Data.Array.Nikola.Backend.CUDA
Data.Array.Nikola.Backend.CUDA.Haskell
Data.Array.Nikola.Backend.CUDA.Haskell.Compile
Data.Array.Nikola.Backend.CUDA.Haskell.Ex
Data.Array.Nikola.Backend.CUDA.Nvcc
Data.Array.Nikola.Backend.CUDA.TH
Data.Array.Nikola.Backend.CUDA.TH.Compile
Data.Array.Nikola.Backend.CUDA.TH.Util
Data.Array.Nikola.Backend.Flags
Data.Array.Nikola.Backend.Main
Data.Array.Nikola.Combinators
Data.Array.Nikola.Eval
Data.Array.Nikola.Eval.Load
Data.Array.Nikola.Eval.Target
Data.Array.Nikola.Exp
Data.Array.Nikola.Language.Check
Data.Array.Nikola.Language.Generic
Data.Array.Nikola.Language.Monad
Data.Array.Nikola.Language.Optimize
Data.Array.Nikola.Language.Optimize.CSE
Data.Array.Nikola.Language.Optimize.Inliner
Data.Array.Nikola.Language.Optimize.Monad
Data.Array.Nikola.Language.Optimize.Occ
Data.Array.Nikola.Language.Optimize.Simpl
Data.Array.Nikola.Language.Optimize.Subst
Data.Array.Nikola.Language.Reify
Data.Array.Nikola.Language.Sharing
Data.Array.Nikola.Language.Syntax
Data.Array.Nikola.Operators.IndexSpace
Data.Array.Nikola.Operators.Mapping
Data.Array.Nikola.Operators.Reduction
Data.Array.Nikola.Program
Data.Array.Nikola.Repr.Delayed
Data.Array.Nikola.Repr.Global
Data.Array.Nikola.Repr.HintIrregular
Data.Array.Nikola.Repr.Push
Data.Array.Nikola.Shape
Data.Array.Nikola.Util.Bool
Data.Array.Nikola.Util.Generic
Data.Array.Nikola.Util.Pretty
Data.Array.Nikola.Util.Quote
Data.Array.Nikola.Util.Statistics
Data.Array.Nikola.Util.Random
Data.Array.Repa.Mutable
Data.Array.Repa.Repr.CUDA.ForeignPtr
Data.Array.Repa.Repr.CUDA.UnboxedForeign
Data.Array.Repa.Repr.UnboxedForeign
Data.Vector.CUDA.Storable
Data.Vector.CUDA.Storable.Internal
Data.Vector.CUDA.Storable.Mutable
Data.Vector.CUDA.UnboxedForeign
Data.Vector.CUDA.UnboxedForeign.Base
Data.Vector.CUDA.UnboxedForeign.Mutable
Data.Vector.UnboxedForeign
Data.Vector.UnboxedForeign.Base
Data.Vector.UnboxedForeign.Mutable
Foreign.CUDA.Driver.Graphics
Foreign.CUDA.Driver.Graphics.OpenGL
Foreign.CUDA.ForeignPtr
Foreign.CUDA.Storable
other-modules:
Foreign.CUDA.Internal.C2HS
build-depends:
OpenGL >= 2.5 && < 2.7,
base >= 4 && < 5,
bytestring >= 0.9 && < 0.11,
containers >= 0.4 && < 0.6,
cuda >= 0.5 && < 0.6,
exception-mtl >= 0.3 && < 0.4,
exception-transformers >= 0.3 && < 0.4,
language-c-quote >= 0.4 && < 0.5,
mainland-pretty >= 0.2 && < 0.3,
mersenne-random-pure64 >= 0.2 && < 0.3,
mtl >= 2 && < 3,
process >= 1.0 && < 1.2,
primitive >= 0.4 && < 0.6,
random >= 1.0 && < 1.1,
repa >= 3.2 && < 3.3,
srcloc >= 0.2 && < 0.4,
syb >= 0.3 && < 0.4,
symbol >= 0.1 && < 0.2,
text >= 0.11 && < 0.12,
transformers >= 0.2 && < 0.4,
vector >= 0.9 && < 0.11,
template-haskell
build-tools:
c2hs >= 0.16,
hsc2hs
default-language: Haskell98
c-sources: cbits/stubs.c
hs-source-dirs: src
include-dirs: include, internal
executable blackscholes
build-depends:
base >= 4 && < 5,
criterion >= 0.6 && < 0.7,
deepseq >= 1.3 && < 1.4,
mtl >= 2 && < 3,
nikola >= 0.9 && < 0.10,
statistics >= 0.10 && < 0.11,
vector >= 0.9 && < 0.11
main-is: Main.hs
hs-source-dirs: examples/blackscholes
default-language: Haskell98
if flag(examples)
buildable: True
else
buildable: False
if flag(optimize) && !os(windows)
ghc-options: -O3
ghc-options: -fllvm -optlo-O3
ghc-options: -fno-liberate-case
ghc-options: -funfolding-use-threshold1000 -funfolding-keeness-factor1000
executable american
build-depends:
base >= 4 && < 5,
criterion >= 0.6 && < 0.7,
mtl >= 2 && < 3,
nikola >= 0.9 && < 0.10,
statistics >= 0.10 && < 0.11,
vector >= 0.9 && < 0.11
main-is: Main.hs
hs-source-dirs: examples/american
default-language: Haskell98
if flag(examples)
buildable: True
else
buildable: False
if flag(optimize)
ghc-options: -O3
ghc-options: -fllvm -optlo-O3
ghc-options: -fno-liberate-case
ghc-options: -funfolding-use-threshold1000 -funfolding-keeness-factor1000
executable mandelbrot
build-depends:
OpenGL >= 2.5 && < 2.7,
GLUT >= 2.3 && < 3.4,
base >= 4 && < 5,
containers >= 0.4 && < 0.6,
criterion >= 0.6 && < 0.7,
cuda >= 0.4 && < 0.6,
deepseq >= 1.3 && < 1.4,
mtl >= 2 && < 3,
nikola >= 0.9 && < 0.10,
repa >= 3.2 && < 3.3,
statistics >= 0.10 && < 0.11,
vector >= 0.9 && < 0.11
main-is: Main.hs
hs-source-dirs: examples/mandelbrot
examples/common
default-language: Haskell98
if flag(examples)
buildable: True
else
buildable: False
if flag(optimize)
ghc-options: -threaded
ghc-options: -O3
ghc-options: -fllvm -optlo-O3
ghc-options: -fno-liberate-case
ghc-options: -funfolding-use-threshold1000 -funfolding-keeness-factor1000
executable blackscholes-compile
build-depends:
base >= 4 && < 5,
language-c-quote >= 0.4 && < 0.5,
mtl >= 2 && < 3,
nikola >= 0.9 && < 0.10,
mainland-pretty >= 0.2 && < 0.3,
statistics >= 0.10 && < 0.11,
vector >= 0.9 && < 0.11
main-is: Main.hs
hs-source-dirs: examples/blackscholes-compile
default-language: Haskell98
if flag(examples)
buildable: True
else
buildable: False
test-suite unit
type: exitcode-stdio-1.0
hs-source-dirs: tests/unit
main-is: Main.hs
default-language: Haskell98
build-depends:
HUnit >= 1.2 && < 1.3,
QuickCheck >= 2.4 && < 2.6,
base >= 4 && < 5,
cuda >= 0.4 && < 0.6,
mtl >= 2 && < 3,
nikola >= 0.9 && < 0.10,
repa >= 3.2 && < 3.3,
test-framework >= 0.8 && < 0.9,
test-framework-hunit >= 0.3 && < 0.4,
test-framework-quickcheck2 >= 0.3 && < 0.4,
vector >= 0.9 && < 0.11
source-repository head
type: git
location: git://github.com/mainland/nikola.git