Provider options
This reference is generated from the option declarations in
src/tensorrt_rtx_provider_options.h.
All option values are passed to ONNX Runtime as strings.
For session provider options, Dynamic updates indicates whether the option can be
changed after session creation with Ort::Session::SetEpDynamicOptions.
Dynamic updates do not apply to per-run options.
Session provider options
Option |
Type |
Default |
Dynamic updates |
Accepted values |
Description |
|---|---|---|---|---|---|
|
Boolean |
|
No |
|
Set to |
|
String |
|
No |
|
Pointer to a caller-owned |
|
String |
|
No |
|
Pointer to a caller-provided array of |
|
Integer |
|
No |
Non-negative value. |
Maximum GPU memory in bytes that TensorRT-RTX may use as a workspace during engine build. The value must fit in the |
|
Integer |
|
No |
Non-negative value. |
Maximum shared memory in bytes that TensorRT-RTX kernels are allowed to use. The value must fit in the |
|
Integer |
|
No |
|
Number of entries in |
|
Boolean |
|
No |
|
Dump partitioned subgraphs to disk for debugging. |
|
Boolean |
|
No |
|
Enable verbose TensorRT-RTX engine build logging. |
|
String |
|
No |
|
Minimum input shapes for TensorRT-RTX optimization profiles. |
|
String |
|
No |
|
Maximum input shapes for TensorRT-RTX optimization profiles. |
|
String |
|
No |
|
Optimal input shapes for TensorRT-RTX optimization profiles. |
|
Boolean |
|
No |
|
Enable CUDA graph capture to reduce kernel-launch overhead on repeated inference runs with fixed input shapes. |
|
Boolean |
|
No |
|
Enable multi-profile support to handle multiple TensorRT-RTX optimization profiles within a single session. |
|
Boolean |
|
No |
|
Use external data initializers for model weights instead of embedding them in the engine. |
|
String |
|
No |
|
Directory path where compiled TensorRT-RTX engines are cached between sessions. |
|
String |
|
No |
|
Pointer to a Vulkan |
|
String |
|
Yes |
|
GPU memory budget for TensorRT RTX weight streaming. A nonzero value enables weight streaming when building engines. The budget can be updated persistently for subsequent runs with |
|
String |
|
No |
|
Comma-separated list of ONNX op types that the EP should leave to other execution providers during graph partitioning. |
|
Boolean |
|
No |
|
Enable per-layer GPU timing via TensorRT-RTX’s IProfiler. Incompatible with CUDA graph capture; enabling both auto-disables CUDA graphs with a warning. |
|
String |
|
No |
|
File path for the Chrome tracing JSON profiling output. |
|
Boolean |
|
No |
|
Install a synchronous GPU allocator ( |
|
Boolean |
|
No |
|
Retain execution context device memory between runs in both normal and EPContext execution. Allocates the engine-wide memory requirement on first use, avoiding per-run allocations at the cost of retaining GPU memory until the session is destroyed, including for smaller dynamic shapes. |
|
Integer |
|
No |
|
Token offset at which the EP switches from the short to the long rotary position embedding (RoPE) cache. Required for LongRoPE models such as Phi-4. |
|
Boolean |
|
No |
|
Experimental: enable weight-stripped EPContext engine builds. The resulting engine can be refitted at load time from the original ONNX model weights. Requires TensorRT RTX 1.7+. |
|
String |
|
No |
|
Target GPU SM architecture for ahead-of-time (AOT) compilation. When set on a compile-only session the EP skips all CUDA and device initialisation, allowing engine builds in environments with no GPU driver access (e.g. a sandboxed compiler process). |
Run options
Option |
Type |
Default |
Dynamic updates |
Accepted values |
Description |
|---|---|---|---|---|---|
|
Integer |
|
N/A |
|
TensorRT-RTX optimization profile index to use at runtime. Must be within the range of profiles built into the engine. |
|
Integer |
|
N/A |
|
CUDA graph annotation ID for graph capture and replay. Use different IDs to maintain separate captured graphs within a session. |
|
String |
|
N/A |
|
Control memory arena shrinkage between inference runs. |