forked from diku-dk/futhark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfuthark.cabal
412 lines (406 loc) · 13.1 KB
/
futhark.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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
cabal-version: 2.4
name: futhark
version: 0.22.0
synopsis: An optimising compiler for a functional, array-oriented language.
description: Futhark is a small programming language designed to be compiled to
efficient parallel code. It is a statically typed, data-parallel,
and purely functional array language in the ML family, and comes
with a heavily optimising ahead-of-time compiler that presently
generates GPU code via CUDA and OpenCL, although the language itself
is hardware-agnostic.
.
For more information, see the website at https://futhark-lang.org
.
For introductionary information about hacking on the
Futhark compiler, see
<https://futhark.readthedocs.io/en/latest/hacking.html the hacking guide>.
Regarding the internal design of the compiler, the following modules make
good starting points:
.
* "Futhark.IR.Syntax" explains the
basic design of the intermediate representation (IR).
* "Futhark.Construct" explains how to write code that
manipulates and creates AST fragments.
.
<<docs/assets/ohyes.png You too can go fast once you rewrite your program in Futhark.>>
category: Futhark
homepage: https://futhark-lang.org
bug-reports: https://github.com/diku-dk/futhark/issues
maintainer: Troels Henriksen [email protected]
license: ISC
license-file: LICENSE
build-type: Simple
extra-source-files:
rts/c/*.h
rts/futhark-doc/*.css
rts/javascript/*.js
rts/python/*.py
prelude/*.fut
-- Just enough of the docs to build the manpages.
docs/**/*.rst
docs/Makefile
docs/conf.py
docs/requirements.txt
extra-doc-files:
assets/*.png
source-repository head
type: git
location: https://github.com/diku-dk/futhark
library
exposed-modules:
Futhark.Actions
Futhark.Analysis.Alias
Futhark.Analysis.CallGraph
Futhark.Analysis.DataDependencies
Futhark.Analysis.HORep.MapNest
Futhark.Analysis.HORep.SOAC
Futhark.Analysis.Interference
Futhark.Analysis.LastUse
Futhark.Analysis.MemAlias
Futhark.Analysis.Metrics
Futhark.Analysis.Metrics.Type
Futhark.Analysis.PrimExp
Futhark.Analysis.PrimExp.Convert
Futhark.Analysis.PrimExp.Generalize
Futhark.Analysis.PrimExp.Parse
Futhark.Analysis.PrimExp.Simplify
Futhark.Analysis.Rephrase
Futhark.Analysis.SymbolTable
Futhark.Analysis.UsageTable
Futhark.Bench
Futhark.Builder
Futhark.Builder.Class
Futhark.CLI.Autotune
Futhark.CLI.Bench
Futhark.CLI.C
Futhark.CLI.CUDA
Futhark.CLI.Check
Futhark.CLI.Datacmp
Futhark.CLI.Dataset
Futhark.CLI.Defs
Futhark.CLI.Dev
Futhark.CLI.Doc
Futhark.CLI.Literate
Futhark.CLI.Misc
Futhark.CLI.Multicore
Futhark.CLI.MulticoreWASM
Futhark.CLI.OpenCL
Futhark.CLI.Pkg
Futhark.CLI.PyOpenCL
Futhark.CLI.Python
Futhark.CLI.Query
Futhark.CLI.REPL
Futhark.CLI.Run
Futhark.CLI.Test
Futhark.CLI.WASM
Futhark.CodeGen.Backends.CCUDA
Futhark.CodeGen.Backends.CCUDA.Boilerplate
Futhark.CodeGen.Backends.COpenCL
Futhark.CodeGen.Backends.COpenCL.Boilerplate
Futhark.CodeGen.Backends.GenericC
Futhark.CodeGen.Backends.GenericC.CLI
Futhark.CodeGen.Backends.GenericC.Options
Futhark.CodeGen.Backends.GenericC.Server
Futhark.CodeGen.Backends.GenericPython
Futhark.CodeGen.Backends.GenericPython.AST
Futhark.CodeGen.Backends.GenericPython.Options
Futhark.CodeGen.Backends.GenericWASM
Futhark.CodeGen.Backends.MulticoreC
Futhark.CodeGen.Backends.MulticoreWASM
Futhark.CodeGen.Backends.PyOpenCL
Futhark.CodeGen.Backends.PyOpenCL.Boilerplate
Futhark.CodeGen.Backends.SequentialC
Futhark.CodeGen.Backends.SequentialC.Boilerplate
Futhark.CodeGen.Backends.SequentialPython
Futhark.CodeGen.Backends.SequentialWASM
Futhark.CodeGen.Backends.SimpleRep
Futhark.CodeGen.RTS.C
Futhark.CodeGen.RTS.Python
Futhark.CodeGen.RTS.JavaScript
Futhark.CodeGen.ImpCode
Futhark.CodeGen.ImpCode.GPU
Futhark.CodeGen.ImpCode.Multicore
Futhark.CodeGen.ImpCode.OpenCL
Futhark.CodeGen.ImpCode.Sequential
Futhark.CodeGen.ImpGen
Futhark.CodeGen.ImpGen.CUDA
Futhark.CodeGen.ImpGen.GPU
Futhark.CodeGen.ImpGen.GPU.Base
Futhark.CodeGen.ImpGen.GPU.SegHist
Futhark.CodeGen.ImpGen.GPU.SegMap
Futhark.CodeGen.ImpGen.GPU.SegRed
Futhark.CodeGen.ImpGen.GPU.SegScan
Futhark.CodeGen.ImpGen.GPU.SegScan.SinglePass
Futhark.CodeGen.ImpGen.GPU.SegScan.TwoPass
Futhark.CodeGen.ImpGen.GPU.ToOpenCL
Futhark.CodeGen.ImpGen.GPU.Transpose
Futhark.CodeGen.ImpGen.Multicore
Futhark.CodeGen.ImpGen.Multicore.Base
Futhark.CodeGen.ImpGen.Multicore.SegHist
Futhark.CodeGen.ImpGen.Multicore.SegMap
Futhark.CodeGen.ImpGen.Multicore.SegRed
Futhark.CodeGen.ImpGen.Multicore.SegScan
Futhark.CodeGen.ImpGen.OpenCL
Futhark.CodeGen.ImpGen.Sequential
Futhark.CodeGen.ImpGen.Transpose
Futhark.CodeGen.OpenCL.Heuristics
Futhark.CodeGen.SetDefaultSpace
Futhark.Compiler
Futhark.Compiler.CLI
Futhark.Compiler.Config
Futhark.Compiler.Program
Futhark.Construct
Futhark.Doc.Generator
Futhark.Error
Futhark.FreshNames
Futhark.IR
Futhark.IR.Aliases
Futhark.IR.GPU
Futhark.IR.GPU.Op
Futhark.IR.GPU.Simplify
Futhark.IR.GPU.Sizes
Futhark.IR.GPUMem
Futhark.IR.MC
Futhark.IR.MC.Op
Futhark.IR.MCMem
Futhark.IR.Mem
Futhark.IR.Mem.IxFun
Futhark.IR.Mem.Simplify
Futhark.IR.Parse
Futhark.IR.Pretty
Futhark.IR.Primitive
Futhark.IR.Primitive.Parse
Futhark.IR.Prop
Futhark.IR.Prop.Aliases
Futhark.IR.Prop.Constants
Futhark.IR.Prop.Names
Futhark.IR.Prop.Patterns
Futhark.IR.Prop.Rearrange
Futhark.IR.Prop.Reshape
Futhark.IR.Prop.Scope
Futhark.IR.Prop.TypeOf
Futhark.IR.Prop.Types
Futhark.IR.Rep
Futhark.IR.RetType
Futhark.IR.SOACS
Futhark.IR.SOACS.SOAC
Futhark.IR.SOACS.Simplify
Futhark.IR.SegOp
Futhark.IR.Seq
Futhark.IR.SeqMem
Futhark.IR.Syntax
Futhark.IR.Syntax.Core
Futhark.IR.Traversals
Futhark.IR.TypeCheck
Futhark.Internalise
Futhark.Internalise.AccurateSizes
Futhark.Internalise.Bindings
Futhark.Internalise.Defunctionalise
Futhark.Internalise.Defunctorise
Futhark.Internalise.Exps
Futhark.Internalise.FreeVars
Futhark.Internalise.Lambdas
Futhark.Internalise.LiftLambdas
Futhark.Internalise.Monad
Futhark.Internalise.Monomorphise
Futhark.Internalise.TypesValues
Futhark.MonadFreshNames
Futhark.Optimise.BlkRegTiling
Futhark.Optimise.CSE
Futhark.Optimise.DoubleBuffer
Futhark.Optimise.Fusion
Futhark.Optimise.Fusion.Composing
Futhark.Optimise.Fusion.LoopKernel
Futhark.Optimise.InPlaceLowering
Futhark.Optimise.InPlaceLowering.LowerIntoStm
Futhark.Optimise.InPlaceLowering.SubstituteIndices
Futhark.Optimise.InliningDeadFun
Futhark.Optimise.MemoryBlockMerging
Futhark.Optimise.MemoryBlockMerging.GreedyColoring
Futhark.Optimise.Simplify
Futhark.Optimise.Simplify.Engine
Futhark.Optimise.Simplify.Rep
Futhark.Optimise.Simplify.Rule
Futhark.Optimise.Simplify.Rules
Futhark.Optimise.Simplify.Rules.BasicOp
Futhark.Optimise.Simplify.Rules.ClosedForm
Futhark.Optimise.Simplify.Rules.Index
Futhark.Optimise.Simplify.Rules.Loop
Futhark.Optimise.Simplify.Rules.Simple
Futhark.Optimise.Sink
Futhark.Optimise.TileLoops
Futhark.Optimise.TileLoops.Shared
Futhark.Optimise.Unstream
Futhark.Pass
Futhark.Pass.ExpandAllocations
Futhark.Pass.ExplicitAllocations
Futhark.Pass.ExplicitAllocations.GPU
Futhark.Pass.ExplicitAllocations.MC
Futhark.Pass.ExplicitAllocations.SegOp
Futhark.Pass.ExplicitAllocations.Seq
Futhark.Pass.ExtractKernels
Futhark.Pass.ExtractKernels.BlockedKernel
Futhark.Pass.ExtractKernels.DistributeNests
Futhark.Pass.ExtractKernels.Distribution
Futhark.Pass.ExtractKernels.ISRWIM
Futhark.Pass.ExtractKernels.Interchange
Futhark.Pass.ExtractKernels.Intragroup
Futhark.Pass.ExtractKernels.StreamKernel
Futhark.Pass.ExtractKernels.ToGPU
Futhark.Pass.ExtractMulticore
Futhark.Pass.FirstOrderTransform
Futhark.Pass.KernelBabysitting
Futhark.Pass.Simplify
Futhark.Passes
Futhark.Pipeline
Futhark.Pkg.Info
Futhark.Pkg.Solve
Futhark.Pkg.Types
Futhark.Script
Futhark.Test
Futhark.Test.Spec
Futhark.Test.Values
Futhark.Tools
Futhark.Transform.CopyPropagate
Futhark.Transform.FirstOrderTransform
Futhark.Transform.Rename
Futhark.Transform.Substitute
Futhark.Util
Futhark.Util.Console
Futhark.Util.IntegralExp
Futhark.Util.Loc
Futhark.Util.Log
Futhark.Util.Options
Futhark.Util.Pretty
Futhark.Util.Table
Futhark.Version
Language.Futhark
Language.Futhark.Core
Language.Futhark.Interpreter
Language.Futhark.Parser
Language.Futhark.Prelude
Language.Futhark.Pretty
Language.Futhark.Prop
Language.Futhark.Query
Language.Futhark.Semantic
Language.Futhark.Syntax
Language.Futhark.Traversals
Language.Futhark.TypeChecker
Language.Futhark.TypeChecker.Match
Language.Futhark.TypeChecker.Modules
Language.Futhark.TypeChecker.Monad
Language.Futhark.TypeChecker.Terms
Language.Futhark.TypeChecker.Terms.DoLoop
Language.Futhark.TypeChecker.Terms.Monad
Language.Futhark.TypeChecker.Terms.Pat
Language.Futhark.TypeChecker.Types
Language.Futhark.TypeChecker.Unify
Language.Futhark.Warnings
other-modules:
Language.Futhark.Parser.Parser
Language.Futhark.Parser.Lexer
Paths_futhark
autogen-modules:
Paths_futhark
hs-source-dirs:
src
ghc-options: -Wall -Wcompat -Wno-incomplete-uni-patterns -Wredundant-constraints -Wincomplete-record-updates -Wmissing-export-lists
build-tool-depends:
alex:alex
, happy:happy
build-depends:
aeson >=2.0.0.0
, ansi-terminal >=0.6.3.1
, array >=0.4
, base >=4.13 && <5
, base16-bytestring
, binary >=0.8.3
, blaze-html >=0.9.0.1
, bytestring >=0.10.8
, bytestring-to-vector >=0.3.0.1
, bmp >=1.2.6.3
, containers >=0.6.2.1
, cryptohash-md5
, directory >=1.3.0.0
, directory-tree >=0.12.1
, dlist >=0.6.0.1
, file-embed >=0.0.14.0
, filepath >=1.4.1.1
, free >=4.12.4
, futhark-data >= 1.0.3.0
, futhark-server >= 1.1.2.0
, futhark-manifest >= 1.0.0.0
, githash >=0.1.6.1
, half >= 0.3
, haskeline
, language-c-quote >=0.12
, mainland-pretty >=0.7.1
, cmark-gfm >=0.2.1
, megaparsec >=9.0.0
, mtl >=2.2.1
, neat-interpolation >=0.3
, parallel >=3.2.1.0
, random >= 1.2.0
, process >=1.4.3.0
, process-extras >=0.7.2
, regex-tdfa >=1.2
, srcloc >=0.4
, template-haskell >=2.11.1
, temporary
, terminal-size >=0.3
, text >=1.2.2.2
, time >=1.6.0.1
, transformers >=0.3
, vector >=0.12
, vector-binary-instances >=0.2.2.0
, versions >=5.0.0
, zip-archive >=0.3.1.1
, zlib >=0.6.1.2
default-language: Haskell2010
executable futhark
main-is: src/futhark.hs
other-modules:
Paths_futhark
ghc-options: -Wall -Wcompat -Wno-incomplete-uni-patterns -Wredundant-constraints -Wincomplete-record-updates -Wmissing-export-lists -threaded -rtsopts "-with-rtsopts=-N -qg1 -A16M"
build-depends:
base
, futhark
, text
default-language: Haskell2010
test-suite unit
type: exitcode-stdio-1.0
main-is: futhark_tests.hs
other-modules:
Futhark.BenchTests
Futhark.Pkg.SolveTests
Futhark.IR.Prop.RearrangeTests
Futhark.IR.Prop.ReshapeTests
Futhark.IR.PropTests
Futhark.IR.Syntax.CoreTests
Futhark.IR.SyntaxTests
Futhark.IR.Mem.IxFun.Alg
Futhark.IR.Mem.IxFunTests
Futhark.IR.Mem.IxFunWrapper
Futhark.IR.PrimitiveTests
Language.Futhark.CoreTests
Language.Futhark.SyntaxTests
Language.Futhark.TypeCheckerTests
Language.Futhark.TypeChecker.TypesTests
Futhark.Optimise.MemoryBlockMerging.GreedyColoringTests
Paths_futhark
hs-source-dirs:
unittests
ghc-options: -Wall -Wcompat -Wredundant-constraints -Wincomplete-record-updates -Wmissing-export-lists
build-depends:
QuickCheck >=2.8
, base
, containers
, futhark
, megaparsec
, mtl
, parser-combinators
, tasty
, tasty-hunit
, tasty-quickcheck
, text
default-language: Haskell2010