← News

Inference frameworks

NVIDIA Details TensorRT Global Performance Tuner, Which Searches Build Routes Instead of One Compile Strategy

An NVIDIA developer post explains the TensorRT 11.1 Global Performance Tuner: more than 200 compiler knobs form searchable build routes, accuracy filters candidates, and ten workloads saw 1.14x-1.63x gains.

Published: 2026-11-18 13:26 UTCUpdated: 2026-11-18 13:26 UTCSource date: 2026-10-23

NVIDIA has published the second part of a developer blog series on the Global Performance Tuner introduced in TensorRT 11.1, describing the feature's algorithm and architecture. Written by NVIDIA engineers Jian Hu and Lin Chai, the post's central idea is to represent the scheduling choices hidden inside a deep learning compiler as explicit, searchable "build routes," and then let measured behavior decide which complete solution is fastest for a given deployment. The first part, per the authors, covered the scheduling problem and the mathematics behind it.

A compiler knob, as the post defines it, is a configuration setting that changes some part of the compilation pipeline, such as a heuristic, a fusion decision or a code generation path. Each knob exposes a finite set of allowed values and carries a default. A build route is one concrete combination of knob values; when none is specified, TensorRT uses the default route in which every knob keeps its default. The authors use a hypothetical three-pass compiler with a binary fusion knob to show why selection requires measurement: horizontal fusion may win on one model and vertical fusion on another, and the answer can shift with tensor shapes and the target GPU even when the model is unchanged.

A knob combination is a specification of a build route, not a complete description of the resulting engine, the post stresses. TensorRT still performs the remaining stages of engine construction, including tactic selection, and may reconcile individual knob values with network constraints. Around that abstraction, TensorRT 11.1 exposes a compact C++ API surface: a setter applies a fixed route, a getter returns the route currently specified, and a separate getter lists the available knobs with their allowed values, defaults and purposes. The release ships more than 200 tunable knobs, according to NVIDIA.

At the tooling level, trtexec implements the tuning loop. Given an input model and a regex-like route expression, it expands the expression into a list of concrete routes, builds and measures each candidate for accuracy and performance, discards routes that crash during building or fail the accuracy requirement during inference, and selects the fastest eligible engine by measured end-to-end performance. A Python implementation of the same logic is slated for Torch-TensorRT 2.15.

NVIDIA reports that across ten evaluated workloads, tuning improved end-to-end performance by 1.14x to 1.63x over the default build route. The authors emphasize that the spread across workloads shows a single default scheduling strategy should not be expected to realize each model's best performance. These numbers were measured by NVIDIA on its chosen workloads and environments and should not be assumed to transfer to other models or hardware.

The post also addresses performance-accuracy entanglement. In a thought experiment, a model has four places where quantization could be inserted, controlled by four binary knobs, yielding 16 candidates: quantizing everywhere may be fastest but may miss the accuracy target, no quantization gives the best accuracy but the worst speed, and the middle candidates are hard to rank in advance. The Global Performance Tuner separates the roles: accuracy acts as a constraint that decides which candidates are acceptable, and performance ranks the acceptable ones. Developers supply the accuracy metric, dataset and reference outputs as golden values, plus a tolerance boundary. An extreme case makes the point that performance alone is insufficient: with tolerance at infinity, a meaningless "empty" solution that computes nothing in zero time could theoretically win.

The authors' practical guidance is to match the search strategy to the space. The fast search uses the default route as a baseline and varies one knob at a time; mixed first runs a fast scan and then explores combinations of the values that helped; full search evaluates the complete Cartesian product of a small, carefully chosen knob set. Before a fast or full sweep, --dryRun prints the concrete route list without building engines, though it is unsupported with mixed search because the second phase depends on first-phase measurements. Tuning should be incremental and resumable: --tuningCacheFile records each completed route's GPU time and accuracy result so an interrupted sweep can resume with --continue, and --saveAllEngines preserves every iteration's engine for debugging at substantial storage cost.

Finally, the post warns that the best route is specific to the model, input shapes, target GPU, software stack and TensorRT and tuner versions; re-tuning is advised after any of these change. Prior experience can serve as a prior to focus exploration, but every final route should be validated in its actual deployment environment. For inference teams, the takeaway is that compilation optimization is shifting from one universal strategy toward systematic, model-specific evidence.


Related articles