Check which GPU APIs are available
When you sit down at an unfamiliar workstation or CI runner, run one quick probe per GPU job — graphics, compute, and video — before installing toolkits or debugging a failing build.
A missing command means that software stack is not installed on PATH, not that the graphics card is missing.
It is completely normal for nvidia-smi to succeed on a Linux server that has no vulkaninfo, or for vulkaninfo to list an integrated Intel GPU on a laptop where neither CUDA nor ROCm exists.
For how these APIs divide the work of one card, read GPU programming.
Probe graphics and explicit GPU APIs
Vulkan (Windows and Linux)
Install the Vulkan SDK or your Linux distribution’s vulkan-tools package, then run:
vulkaninfo --summary
Look for a physical device entry whose deviceType is PHYSICAL_DEVICE_TYPE_DISCRETE_GPU or PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU, along with a driver name and version.
If the only device listed is llvmpipe (or another CPU software implementation), Vulkan calls will still run for basic wiring tests, but execution happens on the CPU rather than on the graphics card.
OpenGL (Linux) and Direct3D (Windows)
On Linux, check the active OpenGL renderer with:
glxinfo -B
Read the renderer string: llvmpipe or softpipe means CPU software rendering, whereas a hardware vendor name indicates GPU acceleration (if the string mentions zink, Mesa is running OpenGL on top of Vulkan).
On Windows, run dxdiag to inspect the installed Direct3D display adapters and driver versions.
WebGL 2 and WebGPU (browsers)
Browser GPU capabilities cannot be checked from stock Node, which exposes neither WebGL nor WebGPU.
Open chrome://gpu in Chrome or Edge, or about:support in Firefox, and inspect two entries: the active WebGL renderer (which often shows ANGLE targeting Direct3D 11 or Metal) and whether WebGPU reports hardware acceleration.
You can also verify both paths live with Draw a triangle and run a compute shader.
Probe dedicated compute platforms
CUDA (NVIDIA)
nvidia-smi
nvcc --version
nvidia-smi confirms that an NVIDIA GPU and the CUDA driver are active, which is enough to execute prebuilt CUDA binaries.
nvcc --version checks whether the separate CUDA toolkit compiler is installed on PATH.
Notice that the CUDA version printed in the nvidia-smi header is the maximum toolkit version the installed driver supports, not confirmation that nvcc itself is installed.
ROCm and HIP (AMD)
rocminfo
hipcc --version
Look for a GPU agent in rocminfo output, not only CPU agents.
This is the standard check for AMD compute on Linux.
On Windows, treat ROCm/HIP as unavailable unless rocminfo actually reports your GPU on that machine — regardless of whether the card family is listed in marketing material — and use Vulkan compute or WebGPU instead.
Probe hardware video (Linux)
On Linux, check VA-API support with:
vainfo
The opening lines identify the active libva driver (such as Intel iHD, Mesa Gallium for AMD, or the nvidia-vaapi-driver translator over NVIDIA’s NVDEC).
The VAProfile lines below list which codecs support decode (VAEntrypointVLD) and encode (VAEntrypointEncSlice).
Record a three-line machine summary
After running the probes, keep a compact three-line note for the machine:
-
Draw: the hardware device reported by
vulkaninfo(ordxdiag/chrome://gpu), or "software only." -
Compute:
nvidia-smi(plus whethernvccis present),rocminfo(plushipcc), or "compute shaders only (Vulkan / WebGPU)." -
Video: the
vainfodriver and codec profiles on Linux, or "not installed."
Use that summary to pick the matching next guide: Compile and run a CUDA kernel, Compile and run a HIP kernel, Dispatch a Vulkan compute shader, Decode video with VA-API, or Draw a triangle and run a compute shader.