Safe Haskell | None |
---|---|
Language | Haskell2010 |
Change DefaultSpace
in a program to some other memory space.
This is needed because the GPU backends use DefaultSpace
to refer
to GPU memory for most of the pipeline, but final code generation
assumes that DefaultSpace
is CPU memory.
Synopsis
- setDefaultSpace :: Space -> Definitions op -> Definitions op
- setDefaultCodeSpace :: Space -> Code op -> Code op
Documentation
setDefaultSpace :: Space -> Definitions op -> Definitions op Source #
Set all uses of DefaultSpace
in the given definitions to another
memory space.
setDefaultCodeSpace :: Space -> Code op -> Code op Source #
Like setDefaultSpace
, but for Code
.