What Is a Tensor Core Instruction? How to Verify the GPU Execution Path
Learn what connects a matrix API to Tensor Core instructions, which GPU and data-type conditions matter, and how to verify the selected path with profiling evidence.
What Is a Tensor Core Instruction? How to Verify the GPU Execution Path
A Tensor Core instruction is a low-level operation that lets NVIDIA GPU matrix units process groups of products and accumulations as tiles. But having Tensor Cores or calling a matrix multiplication does not prove that those instructions run or that a program gets faster. Check the GPU generation, data types, library choice, problem size, and kernel implementation together.
This article follows NVIDIA documentation checked on 2026-11-22: CUDA 13.2 Programming Guide, cuBLAS 13.5, CUTLASS 4.2.1, PTX ISA 9.5, and Nsight Compute. It explains how a high-level matrix API can reach a device instruction path. For the general hardware concept, see the existing Tensor Core introduction. For the MMA equation and accumulation precision, see the MMA guide.
What does “using Tensor Core instructions” mean?
A matrix API describes an operation contract: input matrices, output, and computation options. A library or compiler implements that contract with a kernel suited to the device. You can say that a particular run used a Tensor Core path only when the selected kernel issues Tensor Core family instructions. An option that permits Tensor Core use, or a product specification that lists Tensor Cores, does not prove that the path was selected.
The path commonly has these stages. Each can add constraints, and lower-level implementation details vary by library and GPU architecture.
| Stage | What it does | Question to check |
|---|---|---|
| Framework or API | Passes the matrix operation, input/output types, and compute options | Which library operation does the call actually invoke? |
| Library or compiler | Chooses kernel candidates for the device and problem | Do supported types, shape, alignment, and compute mode match? |
| Kernel tile implementation | Divides data and assigns work to warps or warp groups | Does this implementation use matrix-specific operations? |
| GPU instruction execution | Runs the selected instructions on the device | Does a profile show Tensor-pipeline activity? |
“Tensor Core supported” and “this call used Tensor Cores” are different claims. The first concerns device or software capability; the second is behavior that must be observed for a particular input and run.
How can you check support beyond the GPU’s name?
CUDA compute capability identifies a generation of CUDA hardware features. GPUs with similar names can differ by generation or variant, so first find the device’s compute capability and then check the data-type table in the CUDA Programming Guide. NVIDIA documents that table and inline PTX access to the feature set, while recommending CUDA-X libraries such as cuBLAS or cuDNN, or CUTLASS, for typical development.
One documented way to check a device is to run nvidia-smi --query-gpu=name,compute_cap --format=csv. This reports the model and compute capability; it does not tell you which kernel a particular call selected.
Next, check that your API supports the input type and compute mode on that GPU. The table below describes what to inspect, not a universal list of supported combinations. Types and performance characteristics vary by generation.
| Check | How to check it | Common oversight |
|---|---|---|
| GPU feature generation | Query compute capability | Do not infer detailed features from product name alone |
| Input types | Read the type support for that capability | FP16, TF32, BF16, FP8, and other types are not identical across generations |
| Accumulator and output types | Read the CUDA API and library documentation | Storage type alone does not identify intermediate precision |
| Instruction and tile constraints | Read the API or target-architecture documentation | Lower-level APIs can constrain tile shapes and layouts |
Are WMMA, MMA, and WGMMA the same API?
No. The names are similar, but the abstraction level and execution group differ. CUDA WMMA is a C++ interface where a warp cooperates. PTX mma instructions are lower-level virtual-ISA operations. The wgmma family expresses asynchronous matrix operations across a warp group on supported devices. The CUDA programming guide warns that WMMA fragment element mapping is opaque and architecture-dependent. Do not infer memory order or a specific machine instruction from an API name.
| Term | Layer and scope | Practical caution |
|---|---|---|
| WMMA | CUDA C++ warp matrix API | Check supported types and shapes; follow warp participation rules |
| mma family | PTX matrix multiply-accumulate instructions | Check ISA and target-architecture constraints |
| wgmma family | PTX warp-group matrix-operation instructions | Check supported generations and synchronization/completion rules |
| cuBLAS or CUTLASS operation | Higher-level library interface | The internal kernel depends on the input and library version |
For example, every thread in the warp must call WMMA mma_sync. Calling it conditionally from only some lanes can produce undefined behavior or a hang. A cuBLAS GEMM caller, by contrast, does not choose a PTX instruction directly: the library selects a kernel, and that kernel uses device-specific instructions. Do not treat an API function name as the name of the emitted instruction.
When should you use a library or write instructions directly?
For a typical application, start with a higher-level library. It handles data-type combinations, GPU generations, tiling, and algorithm selection, and its internal implementation can change across releases. CUTLASS is useful when a developer needs to tune more of the kernel structure or data movement, but it adds configuration and verification work. WMMA or PTX offers more control over operation placement, while making the developer responsible for architecture constraints, warp participation, synchronization, and numerical behavior.
| Choice | Suitable when | Cost or risk |
|---|---|---|
| cuBLAS or framework operation | Standard matrix operations and portability matter most | The caller may not be able to pin the internal algorithm |
| CUTLASS | Kernel structure, tiles, or data movement need tuning | Template configuration and architecture-specific validation |
| Direct WMMA or PTX | A specialized kernel is hard to express through a library | You must manage supported generations, layouts, synchronization, and precision |
Direct instructions are not automatically faster than a library. Compare load, conversion, and store costs, occupancy, boundary handling, and tile utilization. Even a high-throughput matrix unit can lose its advantage on small workloads or memory-bound operations.
Does enabling a library option guarantee execution?
No. Since cuBLAS 11.0, its documentation says that it tries to use Tensor Cores automatically where possible and may select a Tensor Core implementation when it determines that this gives the best performance. A different kernel can be selected when the compute mode, data-type combination, device features, or problem size do not fit. An option that allows a path is not evidence that the path ran.
Matrix dimensions and pointer or stride alignment can affect performance. cuBLAS documents alignment conditions for optimal performance; do not turn those into universal prerequisites for Tensor Core use in every operation. Its documentation says FP8 has specific optimal requirements and that, apart from FP8, cuBLAS has no general matrix-size or alignment restrictions on Tensor Core use since version 11.0. This statement is specific to cuBLAS and that documented scope; do not apply it unchanged to another API or an older release.
Check each of these:
Does the chosen library version and compute mode allow this data-type combination?
Does the GPU capability support the type and instruction path?
Do the input dimensions and layout meet performance recommendations?
Which kernel did the library select for the actual input?
Are accuracy and total runtime better than the reference implementation?
How can you verify the execution path?
Record the device and software configuration, then run a representative workload rather than only a tiny example. If library logs or a framework profiler report the selected algorithm, inspect that information. Otherwise, use Nsight Compute to examine kernel instruction statistics and Tensor-pipeline throughput metrics. Metric names and availability vary by GPU architecture and tool version, so query metrics supported on the current device.
Nsight Compute’s compute-throughput analysis can help assess Tensor-pipeline activity, while instruction statistics help show the executed instruction mix. Do not conclude from one metric alone. Check whether the kernel name, runtime, throughput, and instruction statistics agree. For short kernels, consider profiling overhead and capture conditions. Seeing Tensor instructions also does not mean the whole application became faster.
| Observation | Interpretation | Next check |
|---|---|---|
| Tensor metric appears with the expected kernel | Supports the inference that this kernel used a Tensor path | Cross-check instruction statistics and input/compute types |
| Mostly ordinary arithmetic instructions appear | Another kernel may have been selected, or the capture range may be wrong | Check kernel selection and architecture-specific metric support |
| Tensor activity appears but there is no speedup | Data movement, conversions, small tiles, or low occupancy may dominate | Compare kernel time, memory throughput, and representative sizes |
| Results differ between calls | Shape, alignment, or compute mode may change algorithm selection | Record each shape, stride, and library log |
What should you check when the path is missing or slow?
| Symptom | Possible cause | Safe order of checks |
|---|---|---|
| No Tensor metric appears | Unsupported type or feature, another kernel, or an incorrect capture range | Check capability and type first, then inspect the captured kernel |
| Kernel does not change after an option is enabled | The option allows the path but the input conditions do not fit | Check API version, compute mode, and algorithm information |
| Large matrices are still slow | Data movement, layout conversion, or tile utilization outweighs compute | Separate conversion cost and compare per-kernel time and throughput |
| Only certain sizes are slow | Shape, stride, or alignment changes the selected algorithm | Hold the problematic size constant and compare nearby sizes and logs |
| Direct WMMA code misbehaves | Warp participation or fragment-use rules are violated | Check that every warp lane follows the call and documented type rules |
Diagnose in this order: confirm type and feature support; inspect the actual call and selected kernel; observe instruction and throughput evidence; compare accuracy and end-to-end runtime with a reference. Before changing low-level code, vary the API mode, input size, and layout one at a time. Compare before and after with the same input, GPU, and software versions.
References
[NVIDIA CUDA Programming Guide — Compute Capabilities](https://docs.nvidia.com/cuda/cuda-programming-guide/05-appendices/compute-capabilities.html)
[NVIDIA CUDA Programming Guide — Warp Matrix Functions](https://docs.nvidia.com/cuda/cuda-programming-guide/05-appendices/cpp-language-extensions.html)
[NVIDIA cuBLAS 13.5 Documentation](https://docs.nvidia.com/cuda/cublas/)
[NVIDIA PTX ISA — Contents](https://docs.nvidia.com/cuda/parallel-thread-execution/contents.html)
[NVIDIA Nsight Compute — Compute Triage Guide](https://docs.nvidia.com/nsight-compute/ComputeTriage/)
[NVIDIA CUTLASS — Efficient GEMM in CUDA](https://docs.nvidia.com/cutlass/4.2.1/media/docs/cpp/efficient_gemm.html)