futhark-0.16.4: An optimising compiler for a functional, array-oriented language.
Safe HaskellSafe-Inferred
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.