has_cuda: Check CUDA GPU availability

View source: R/engine.R

has_cudaR Documentation

Check CUDA GPU availability

Description

Returns TRUE when at least one CUDA-capable GPU is detected at runtime. Returns FALSE when the package was built without CUDA support or when no CUDA-capable device is present.

Usage

has_cuda()

Value

Logical scalar: TRUE if at least one CUDA GPU is available.

See Also

cuda_info, bioclim_engine

Examples

has_cuda()

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