Skip to contents

Controls whether the computation runs on a CUDA GPU or the CPU. When "auto" is selected the engine uses the GPU if at least one CUDA device is present, otherwise it falls back to the CPU. GPU requests on systems without a CUDA device silently fall back to the CPU.

Usage

engine_set_device(xptr, device)

Arguments

xptr

External pointer returned by engine_create.

device

Character scalar: one of "auto", "cpu", or "gpu".

Value

NULL invisibly.