gpuinfo: Lightweight Hardware and GPU Compute Detection

Detects central processing unit topology, process-available cores, host and container memory, graphics processing unit hardware, and reports the apparent availability of 'CUDA', 'Metal', 'ROCm', and 'OpenCL' compute backends, with a read-only shared-library inventory for the 'CUDA' runtime, 'cuBLAS', 'cuFFT', 'cuSOLVER', 'cuRAND', and optional 'NCCL' libraries. Detection uses operating-system information, documented platform interfaces, and optional command-line utilities, without requiring a GPU framework, 'Python', or a vendor software development kit. Backend interpretation follows the official 'CUDA' <https://docs.nvidia.com/cuda/cuda-driver-api/>, 'Metal' <https://developer.apple.com/documentation/metal>, 'ROCm' <https://rocm.docs.amd.com/>, and 'OpenCL' <https://registry.khronos.org/OpenCL/> documentation. 'NCCL' version inspection follows its documented API <https://docs.nvidia.com/deeplearning/nccl/user-guide/docs/api/comms.html>. Process-level GPU memory samples, multi-device inventories, and versioned hardware manifests support reproducible benchmarks. Missing hardware, drivers, libraries, and utilities are handled safely.

Version: 0.2.0
Depends: R (≥ 3.6.0)
Suggests: jsonlite, knitr, rmarkdown, testthat (≥ 3.0.0)
Published: 2026-10-14
DOI: 10.32614/CRAN.package.gpuinfo
Author: Stefano Cacciatore ORCID iD [aut, cre]
Maintainer: Stefano Cacciatore <tkcaccia at gmail.com>
BugReports: https://github.com/tkcaccia/gpuinfo/issues
License: MIT + file LICENSE
URL: https://github.com/tkcaccia/gpuinfo
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: gpuinfo results

Documentation:

Reference manual: gpuinfo.html , gpuinfo.pdf
Vignettes: Hardware Detection and Validation (source, R code)

Downloads:

Package source: gpuinfo_0.2.0.tar.gz
Windows binaries: r-devel: gpuinfo_0.1.0.zip, r-release: gpuinfo_0.1.0.zip, r-oldrel: gpuinfo_0.1.0.zip
macOS binaries: r-release (arm64): gpuinfo_0.1.0.tgz, r-oldrel (arm64): gpuinfo_0.1.0.tgz, r-release (x86_64): gpuinfo_0.1.0.tgz, r-oldrel (x86_64): gpuinfo_0.1.0.tgz
Old sources: gpuinfo archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=gpuinfo to link to this page.