Retrieves comprehensive information about the available GPU including device name, compute capability, memory capacity, and multiprocessor count.
Value
A named list with GPU details:
- available
Logical: TRUE if GPU is available
- device_count
Number of CUDA devices
- device_id
ID of the current device (0-indexed)
- name
GPU model name (e.g., "NVIDIA GeForce RTX 4090")
- compute_capability
CUDA compute capability (e.g., "8.9")
- total_memory
Total GPU memory in bytes
- free_memory
Currently available GPU memory in bytes
- multiprocessors
Number of streaming multiprocessors (SMs)
If no GPU is available, returns list(available = FALSE, device_count = 0).
Details
Compute capability
The compute capability indicates the GPU architecture and supported features:
7.0 - Volta (V100): not supported (CUDA 13 has no Volta code)
7.5 - Turing (T4, RTX 20 series): the oldest supported
8.x - Ampere (A100, RTX 30 series)
8.9 - Ada Lovelace (RTX 40 series)
9.x - Hopper (H100)
10.x+ - Blackwell and newer
Memory
The free_memory value reflects memory available at the time of the call.
Other applications or CUDA contexts may be using GPU memory. It is a
device-level number: memory that cuplyr's memory resource holds (see
gpu_memory_state()) counts as used, whether or not a table occupies it.
