Help us shape the future of Go! Take the 2026 Go Developer Survey

nvidia

package
v1.300068.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2026 License: MIT Imports: 5 Imported by: 0

README

NVIDIA GPU Device Detector

Detects NVIDIA GPU devices and driver status on the system.

Overview

The NVIDIA detector identifies NVIDIA GPU hardware and driver availability using platform-specific checks:

Linux Detection
  • /dev/nvidia[0-9]+ device files for hardware detection
  • nvidia-smi utility presence for driver verification
Windows Detection
  • Windows registry check for VEN_10DE (NVIDIA vendor ID) for hardware detection
  • nvidia-smi.exe utility presence for driver verification

Status Results

  • READY: NVIDIA devices detected and drivers are loaded
  • NEEDS_SETUP/NVIDIA_DRIVER: NVIDIA devices detected but drivers are not loaded
  • Returns ErrIncompatibleDetector if no NVIDIA devices are found
Sample Metadata Result
{
  "categories": ["NVIDIA_GPU"],
  "status": "READY"
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDetector

func NewDetector(logger *slog.Logger) detector.DeviceDetector

NewDetector creates new NVIDIA detector using OS-specific checker

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL