Skip to contents

Returns hardware information about the first CUDA-capable GPU detected on this machine.

Usage

cuda_info()

Value

A named list with name (character GPU model name), memory_gb (numeric total memory in GB), and compute_capability (character, e.g. "8.0" for A100). Returns an empty list when no CUDA device is available.

Examples

cuda_info()
#> list()