futhark-0.20.8: An optimising compiler for a functional, array-oriented language.
Safe HaskellNone
LanguageHaskell2010

Futhark.CodeGen.SetDefaultSpace

Description

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

Documentation

setDefaultSpace :: Space -> Definitions op -> Definitions op Source #

Set all uses of DefaultSpace in the given definitions to another memory space.