engine_set_device: Set the compute device for a BioclimEngine instance

View source: R/RcppExports.R

engine_set_deviceR Documentation

Set the compute device for a BioclimEngine instance

Description

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.

See Also

engine_create, has_cuda, bioclim_engine


xbioclim documentation built on Oct. 5, 2026, 5:08 p.m.