What Is CUDA Compute Capability? Check GPU Features and Compilation Targets
CUDA Compute Capability (CC) is a `major.minor` version that describes the CUDA hardware features and instruction support of an NVIDIA GPU. It helps identify a GPU, check whether a feature may be available, and choose `nvcc` targets. A higher CC does not guarantee faster performance or mean that the latest CUDA Toolkit, driver, or libraries are installed; check the GPU and software environment together.
What Is CUDA Compute Capability? Check GPU Features and Compilation Targets
CUDA Compute Capability (CC) is a major.minor version that describes the CUDA hardware features and instruction support of an NVIDIA GPU. It helps identify a GPU, check whether a feature may be available, and choose nvcc targets. A higher CC does not guarantee faster performance or mean that the latest CUDA Toolkit, driver, or libraries are installed; check the GPU and software environment together.
What Compute Capability tells you—and what it does not
The major number identifies a GPU feature generation, and the minor number identifies a version within that generation. For example, 8.6 belongs to the 8.x generation. Product generation names such as Hopper or Blackwell do not always map one-to-one to a CC major number. Even GPUs with the same CC can differ in SM count, memory configuration, and power limits, so their throughput can differ. CC is a compatibility label for features, not a product speed score. The NVIDIA NVCC compilation guide explains the major.minor format and limits on binary compatibility across generations.
Keeping these terms separate helps avoid compatibility mistakes:
| Item | Main question it answers | What it cannot tell you by itself |
|---|---|---|
| GPU model and SKU | Which product and configuration is this? | Which Toolkit/driver is installed and which code forms the application can run |
| Compute Capability | Which CUDA hardware features and architecture targets are supported? | Application performance, memory capacity, or complete software compatibility |
CUDA Toolkit / nvcc | Which headers, compiler, and GPU code targets can be built? | Whether the target machine's GPU or driver can execute that code |
| NVIDIA driver | Can the runtime and device code execute? | Whether the GPU has the required hardware feature |
CUDA feature tables summarize hardware support by CC. A feature appearing in a table does not mean it is immediately usable with every Toolkit, library, and driver combination. A kernel feature depends on the GPU, the compiler target feature set, and the runtime path. Find current and legacy model mappings on NVIDIA's CUDA GPU Compute Capability page.
How do you check a GPU's Compute Capability?
If you know the product model, find the full model name in NVIDIA's official GPU mapping table. Laptop, workstation, and server products with similar names can use different GPUs, so match the suffix and SKU. To query GPUs attached to a running system, use nvidia-smi from the NVIDIA driver:
nvidia-smi --query-gpu=name,compute_capThe output lists each device name with its CC in major.minor form. To check the logical device selected by your program, query the CUDA Runtime API with cudaDeviceGetAttribute(). device must be the device ordinal visible to the current process. In a container or with CUDA_VISIBLE_DEVICES, it may differ from the host's physical device number.
#include <cuda_runtime_api.h>
#include <cstdio>
int device = 0; // logical device selected by the application
int major = 0;
int minor = 0;
cudaError_t status = cudaDeviceGetAttribute(
&major, cudaDevAttrComputeCapabilityMajor, device);
if (status == cudaSuccess) {
status = cudaDeviceGetAttribute(
&minor, cudaDevAttrComputeCapabilityMinor, device);
}
if (status != cudaSuccess) {
std::fprintf(stderr, "CUDA device query failed: %s\n",
cudaGetErrorString(status));
return 1;
}
std::printf("Compute Capability %d.%d\n", major, minor);The CUDA Programming Guide also documents queries through the CUDA C++ standard library, Driver API, and NVML. If a device query fails, do not assume the feature is supported; check the selected device ordinal, driver installation, and runtime environment. See the query examples in Compute Capabilities.
How do you connect CC to feature selection and code builds?
First check the official feature table for the minimum hardware generation, then separately check the CUDA Toolkit, driver, and library requirements. Next, distinguish the two forms of compiler target. compute_XY is a virtual architecture and PTX target; sm_XY is a machine-code (Cubin) target for a GPU. A driver may JIT-compile PTX for a later GPU, but the driver must understand that PTX version and the device must support the required features.
| Target form | Meaning and compatibility considerations |
|---|---|
compute_XY | PTX for a virtual architecture. A lower feature baseline can widen the target range, subject to the driver that will JIT the PTX. |
sm_XY | Cubin for a GPU. Binary compatibility within a major generation depends on conditions such as feature inclusion; do not generalize it to every combination. |
compute_XYa / sm_XYa | Architecture-specific feature target. The guide limits it to the exact CC. |
compute_XYf / sm_XYf | Family-specific feature target introduced with CC 10.0; compatible only within that GPU family. |
For example, NVIDIA documents sm_80 Cubin compatibility with some 8.x devices such as sm_86 and sm_89. This does not mean every major/minor combination is compatible. Binary compatibility across different major CC versions is not guaranteed; a targets are limited to the exact CC, and f targets to the family. For multi-GPU deployments, check the compatibility table and targets recognized by your installed nvcc.
Use these commands to list real code targets and virtual architecture targets recognized by the installed compiler:
nvcc --list-gpu-code
nvcc --list-gpu-archChoose whether to ship PTX at a lower baseline, Cubins for known GPUs, or both. The flow below shows how a model lookup leads to code selection at runtime.
GPU model → check CC → feature table + Toolkit/driver check
→ choose compute_XY (PTX) and/or sm_XY (Cubin)
→ runtime driver selects compatible code or JIT-compiles PTXThe nvcc guide describes -arch=compute_80 for PTX and -arch=sm_80 for PTX plus Cubin. These numbers illustrate command syntax; first verify that the installed Toolkit supports the targets. You can also specify multiple architectures explicitly. The NVCC GPU Compilation guide explains -arch, -gencode, PTX, Cubin, and compatibility examples.
What should you verify before deployment, and how do you recover?
**Identify the target GPU.** Check the actual SKU and the device ordinal selected inside the server or container, not just a similar product name.
**Check CC through two paths.** Compare the official model table with `nvidia-smi --query-gpu=name,compute_cap`. Have the application record the Runtime API result for its selected logical device.
**Separate hardware and software support.** Find the feature's minimum CC in CUDA documentation, then check Toolkit/compiler, driver, and library support in their respective compatibility documents.
**Plan build targets.** Include the required `sm_XY` Cubins and PTX for intended devices. If using architecture-specific `a` or family-specific `f` features, plan their limited execution scope and a fallback.
**Verify on each deployment environment.** Record device selection, the code path actually used, feature results, and errors. A feature appearing in a support list is not a compatibility or performance test.
| Symptom | Check first | Safe response |
|---|---|---|
nvcc does not recognize an architecture target | --list-gpu-code and --list-gpu-arch for the installed Toolkit | Select a supported target or build with a Toolkit that supports it. |
| “No kernel image” or no compatible code at launch | Packaged sm_XY/PTX, selected GPU, and driver PTX support | Add a Cubin for that GPU or include a PTX path whose requirements are met, then rebuild. |
| Unsupported feature or instruction | Actual CC, scope of a/f target, library and driver versions | Fall back to a baseline target or supported combination, and recheck the feature-specific documentation. |
| GPU is correct but performance disappoints | Actual SKU, clocks, power and memory configuration, kernel, and input | Do not compare CC as a speed score; measure the same workload under the same conditions. |
Compute Capability is a starting point for finding hardware features and planning compilation compatibility. Confirm the exact model and runtime CC, match the feature table with Toolkit and driver requirements, choose Cubin/PTX targets, and verify them in the actual deployment environment.
Sources
[NVIDIA CUDA GPU Compute Capability](https://developer.nvidia.com/cuda/gpus)
[NVIDIA CUDA Programming Guide — Compute Capabilities](https://docs.nvidia.com/cuda/cuda-programming-guide/05-appendices/compute-capabilities.html)
[NVIDIA CUDA Compiler Driver — GPU Compilation](https://docs.nvidia.com/cuda/cuda-compiler-driver-nvcc/index.html)
[NVIDIA CUDA Runtime API — Device Management](https://docs.nvidia.com/cuda/cuda-runtime-api/cuda_runtime_api/group__CUDART__DEVICE.html)