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

has_user_compute_stream

Boolean

0

No

0 — use an internally managed stream. 1 — use the stream supplied via user_compute_stream.

Set to 1 when supplying a user-managed CUDA compute stream via user_compute_stream.

user_compute_stream

String

0

No

0 means no user-managed stream pointer is supplied. A nonzero value is the decimal encoding of a caller-owned cudaStream_t pointer and is used when has_user_compute_stream is 1.

Pointer to a caller-owned cudaStream_t, encoded as a decimal string. Requires has_user_compute_stream=1. In C++, encode the pointer with reinterpret_cast<uintptr_t>(ptr).

user_aux_stream_array

String

0

No

0 means no user-provided auxiliary stream array is supplied. A nonzero value is the decimal encoding of a pointer to an array containing nv_length_aux_stream_array streams.

Pointer to a caller-provided array of cudaStream_t used as TensorRT-RTX auxiliary streams, encoded as a decimal string. Keeps auxiliary work inside the caller’s CUDA context, which is required for correct CIG graphics interop. In C++, encode the pointer with reinterpret_cast<uintptr_t>(ptr).

nv_max_workspace_size

Integer

0

No

Non-negative value. 0 lets TensorRT-RTX choose the workspace size automatically.

Maximum GPU memory in bytes that TensorRT-RTX may use as a workspace during engine build. The value must fit in the uint64_t range.

nv_max_shared_mem_size

Integer

0

No

Non-negative value. 0 uses the device maximum.

Maximum shared memory in bytes that TensorRT-RTX kernels are allowed to use. The value must fit in the uint64_t range.

nv_length_aux_stream_array

Integer

0

No

0 configures no user-provided auxiliary streams. Other non-negative integers must match the length of the array passed via user_aux_stream_array.

Number of entries in user_aux_stream_array; also sets the maximum number of TensorRT-RTX auxiliary streams.

nv_dump_subgraphs

Boolean

0

No

0 — disabled. 1 — dump subgraphs to the current working directory.

Dump partitioned subgraphs to disk for debugging.

nv_detailed_build_log

Boolean

0

No

0 — disabled. 1 — emit detailed TensorRT-RTX build log to the ORT logger.

Enable verbose TensorRT-RTX engine build logging.

nv_profile_min_shapes

String

""

No

"" infers minimum shapes from the model. Otherwise, use input:dim0xdim1,...;input2:dim0xdim1,....

Minimum input shapes for TensorRT-RTX optimization profiles.

nv_profile_max_shapes

String

""

No

"" infers maximum shapes from the model. Otherwise, use input:dim0xdim1,...;input2:dim0xdim1,....

Maximum input shapes for TensorRT-RTX optimization profiles.

nv_profile_opt_shapes

String

""

No

"" infers optimal shapes from the model. Otherwise, use input:dim0xdim1,...;input2:dim0xdim1,....

Optimal input shapes for TensorRT-RTX optimization profiles.

enable_cuda_graph

Boolean

0

No

0 — disabled. 1 — enable CUDA graph capture. Input shapes must be fixed across runs.

Enable CUDA graph capture to reduce kernel-launch overhead on repeated inference runs with fixed input shapes.

nv_multi_profile_enable

Boolean

0

No

0 — single profile. 1 — enable multiple optimization profiles.

Enable multi-profile support to handle multiple TensorRT-RTX optimization profiles within a single session.

nv_use_external_data_initializer

Boolean

0

No

0 — disabled. 1 — use externally supplied weight initializers.

Use external data initializers for model weights instead of embedding them in the engine.

nv_runtime_cache_path

String

""

No

"" disables caching. Any non-empty value specifies the cache directory path.

Directory path where compiled TensorRT-RTX engines are cached between sessions.

VkExternalComputeQueueDataParamsNV_data

String

0

No

0 means no external compute queue data is supplied. A nonzero value is the decimal encoding of a pointer to a Vulkan VkExternalComputeQueueDataParamsNV blob.

Pointer to a Vulkan VkExternalComputeQueueDataParamsNV blob used for CIG context creation, encoded as a decimal string. In C++, encode the pointer with reinterpret_cast<uintptr_t>(ptr).

nv_weight_streaming_budget

String

0

Yes

0 disables streaming. -1 uses TensorRT-RTX’s automatic budget. 1 requests minimum VRAM mode. Bare integers greater than 1 set an explicit byte budget. Suffixed values (B, K, M, G) specify resident bytes (e.g. 512M). Percentage values 0%–100% specify the fraction of streamable weights to keep resident in VRAM.

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 Ort::Session::SetEpDynamicOptions. If CUDA graph replay is enabled, TensorRT RTX determines graph eligibility from the resolved budget when creating each execution context.

nv_op_types_to_exclude

String

""

No

"" excludes no operations. Otherwise, provide a case-sensitive, comma-separated list of ONNX op type names, for example Conv,Relu.

Comma-separated list of ONNX op types that the EP should leave to other execution providers during graph partitioning.

nv_enable_profiling

Boolean

0

No

0 — disabled. 1 — enable per-layer profiling. Output path set via nv_profiling_output_file.

Enable per-layer GPU timing via TensorRT-RTX’s IProfiler. Incompatible with CUDA graph capture; enabling both auto-disables CUDA graphs with a warning.

nv_profiling_output_file

String

""

No

"" generates a timestamped output path automatically. Any non-empty value specifies the output file path.

File path for the Chrome tracing JSON profiling output.

nv_use_sync_gpu_allocator

Boolean

0

No

0 — use default async allocator (cudaMallocAsync). 1 — use synchronous allocator (cudaMalloc).

Install a synchronous GPU allocator (cudaMalloc/cudaFree) on the TensorRT RTX runtime, replacing the default cudaMallocAsync path. Enable in environments where asynchronous CUDA allocation is unreliable.

nv_persistent_context_memory

Boolean

0

No

0 — allocate memory per run. 1 — retain and reuse memory for each execution context.

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.

nv_multi_rotary_cache_concat_offset

Integer

0

No

0 applies no token offset. Other non-negative integers set the token offset at which the EP switches to the long RoPE cache.

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.

nv_weight_stripped_engine_enable_experimental

Boolean

0

No

0 — disabled. 1 — enable weight-stripped engine builds (experimental).

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+.

nv_target_sm

String

""

No

"" uses the current GPU architecture via kCURRENT. "sm86" selects Ampere (RTX 30xx). "sm89" selects Ada (RTX 40xx). "sm120" selects Blackwell (RTX 50xx). "sm121" selects GB10 (RTX and DGX Spark).

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

nv_profile_index

Integer

0

N/A

0 selects the first optimization profile. Other non-negative integers select the corresponding profile in the range [0, number_of_profiles - 1].

TensorRT-RTX optimization profile index to use at runtime. Must be within the range of profiles built into the engine.

cuda_graph_annotation_id

Integer

0

N/A

0 identifies the default captured graph. Other non-negative integers identify independent captured graphs within the session.

CUDA graph annotation ID for graph capture and replay. Use different IDs to maintain separate captured graphs within a session.

memory.enable_memory_arena_shrinkage

String

""

N/A

"" disables arena shrinkage. Use gpu:0 to enable shrinkage on GPU device 0 or a semicolon- separated list such as gpu:0;gpu:1 for multiple devices.

Control memory arena shrinkage between inference runs.