View source: R/26_detect_gpu.R
| detect_gpu | R Documentation |
Checks for the presence of GPU hardware by detecting NVIDIA, AMD, macOS integrated, or Windows GPUs using system commands.
detect_gpu(verbose = TRUE)
verbose |
Logical indicating whether to print detection messages (default: TRUE) |
This function attempts to detect GPU hardware by:
Checking for NVIDIA GPUs using nvidia-smi
Checking for AMD GPUs using rocminfo
Checking for macOS integrated GPUs using system_profiler
Checking for Windows GPUs using wmic
The function provides visual feedback through cli alerts about detection results.
Logical value indicating whether any GPU was detected (TRUE) or not (FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.