Safe Haskell | None |
---|---|
Language | Haskell2010 |
All (almost) compiler pipelines end with an Action
, which does
something with the result of the pipeline.
Synopsis
- printAction :: ASTRep rep => Action rep
- printAliasesAction :: (ASTRep rep, CanBeAliased (Op rep)) => Action rep
- impCodeGenAction :: Action SeqMem
- kernelImpCodeGenAction :: Action GPUMem
- multicoreImpCodeGenAction :: Action MCMem
- metricsAction :: OpMetrics (Op rep) => Action rep
- compileCAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem
- compileOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem
- compileCUDAAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem
- compileMulticoreAction :: FutharkConfig -> CompilerMode -> FilePath -> Action MCMem
- compilePythonAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem
- compilePyOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem
Documentation
printAction :: ASTRep rep => Action rep Source #
Print the result to stdout.
printAliasesAction :: (ASTRep rep, CanBeAliased (Op rep)) => Action rep Source #
Print the result to stdout, alias annotations.
impCodeGenAction :: Action SeqMem Source #
Convert the program to sequential ImpCode and print it to stdout.
kernelImpCodeGenAction :: Action GPUMem Source #
Convert the program to GPU ImpCode and print it to stdout.
multicoreImpCodeGenAction :: Action MCMem Source #
Convert the program to CPU multicore ImpCode and print it to stdout.
metricsAction :: OpMetrics (Op rep) => Action rep Source #
Print metrics about AST node counts to stdout.
compileCAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem Source #
The futhark c
action.
compileOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem Source #
The futhark opencl
action.
compileCUDAAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem Source #
The futhark cuda
action.
compileMulticoreAction :: FutharkConfig -> CompilerMode -> FilePath -> Action MCMem Source #
The futhark multicore
action.
compilePythonAction :: FutharkConfig -> CompilerMode -> FilePath -> Action SeqMem Source #
compilePyOpenCLAction :: FutharkConfig -> CompilerMode -> FilePath -> Action GPUMem Source #