Scroll to navigation

LSGPU(1) General Commands Manual LSGPU(1)

NAME

lsgpu - List and inspect GPUs by scanning the PCI bus, DRM, and sysfs

SYNOPSIS

lsgpu [OPTIONS]

DESCRIPTION

lsgpu is part of the igt-gpu-tools suite, and it is designed to assist in GPU enumeration and debugging. lsgpu is a command-line tool for listing and inspecting GPUs available on the system. It scans the PCI bus, DRM subsystem, and sysfs to gather information about detected GPU devices and their properties.

By default, lsgpu displays a list of GPUs along with basic details. The tool supports additional options to print detailed properties and sysfs attributes, apply filters to select specific devices, and verify access permissions to GPU nodes.

Filtering can be performed using the -d or --device option, allowing users to match GPUs based on vendor, PCI attributes, or other criteria. When a filter is applied, only the first matching device is displayed.

Additionally, lsgpu attempts to open the corresponding DRM device nodes (/dev/dri/cardX, /dev/dri/renderDX) to check for access permissions. It follows the IGT variable search order for selecting the target device:

1.
The --device option, if provided
2.
The IGT_DEVICE environment variable, if set
3.
The .igtrc configuration file (Common::Device setting), if neither of the above is specified

OPTIONS

Show help text.
Print vendor/device as hex
Print codename instead pretty device name
Print simple (legacy) device details
Print devices with details
Print PCI GPU devices
List recognized vendors
List registered device filters types
Apply a device filter (e.g. 'pci:vendor=Intel,device=discrete,card=0'). Can be used multiple times.
Print version information and exit

Default print mode options

These options are only valid when using the default printout mode:

Default: Print DRM filters for each device
Print sysfs filters for each device
Print PCI filters for each device

REPORTING BUGS

Report bugs on fd.o GitLab: <https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues>

AUTHOR

IGT Developers <igt-dev@lists.freedesktop.org>

COPYRIGHT

2009,2011,2012,2016,2018,2019,2020,2023,2024,2025 Intel Corporation

2025-03-27 igt-gpu-tools 2.1