Skip to contents

This function queries the system for GPUs from supported vendors (currently NVIDIA) and reports their identity and current memory allocation.

Usage

list_gpus()

Value

A data.frame with one row per GPU, containing the following columns:

  • gpu_id (integer): The 0-indexed ID of the GPU.

  • vendor (character): The GPU vendor (e.g., "nvidia").

  • name (character): The product name of the GPU (e.g., "NVIDIA GeForce RTX 3090").

  • memory_total_mb (numeric): The total installed memory of the GPU in megabytes.

  • memory_free_mb (numeric): The currently available memory of the GPU in megabytes.

Examples

if (FALSE) { # \dontrun{
  list_gpus()
} # }