Skip to contents

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.

Examples

has_cuda()
#> [1] FALSE