Skip to content

EP and Device

An Execution Provider (EP) is a pluggable backend in ONNX Runtime that claims and runs a subset of graph nodes on a specific hardware target. When ONNX Runtime loads a model it partitions the graph among the registered EPs: operators that an EP claims are dispatched to it, and the remainder fall back to the CPU EP. This design lets a single ONNX model exploit an NPU, GPU, or CPU without any change to the graph itself.

A device is the hardware category that an EP targets — one of npu, gpu, or cpu. winml-cli exposes both levels of control: the high-level --device flag selects a hardware category, while the low-level --ep flag pins a specific ONNX Runtime provider name. In most workflows you set --device and let winml-cli resolve the best available EP; you reach for --ep when you need to compare or force a specific provider.

EPs winml-cli supports

The table below lists every Execution Provider that winml-cli has explicit support for. EP names are the canonical ONNX Runtime strings accepted by --ep. You can also use the short alias (case-insensitive) anywhere the full name is accepted.

EP Alias Device Hardware When to use
QNNExecutionProvider qnn npu / gpu Qualcomm NPU (Hexagon DSP) / Qualcomm GPU (Adreno) Snapdragon-based Copilot+ PCs; best latency and power efficiency on Qualcomm silicon
VitisAIExecutionProvider vitisai npu AMD NPU (XDNA) AMD Ryzen AI platforms; targets the AMD AI Engine via the Vitis AI stack
OpenVINOExecutionProvider openvino npu / gpu / cpu Intel CPU / GPU / NPU Intel Core Ultra platforms; flexible device targeting across all three Intel compute types
DmlExecutionProvider dml gpu GPU (DirectML) Any DirectX 12 GPU on Windows; broad compatibility across AMD, Intel, and NVIDIA discrete/integrated graphics
NvTensorRTRTXExecutionProvider nv_tensorrt_rtx gpu NVIDIA GPU (TensorRT RTX) NVIDIA RTX GPUs; maximum throughput via TensorRT graph optimization
MIGraphXExecutionProvider migraphx gpu AMD GPU (MIGraphX) AMD discrete GPUs; hardware-accelerated inference via the MIGraphX graph engine
CPUExecutionProvider cpu cpu CPU Universal fallback; always available regardless of hardware

To see which EPs are available on the current machine, run:

winml sys --list-ep

Device vs. EP on the CLI

winml-cli exposes two overlapping flags for targeting hardware. Understanding their relationship prevents confusion when using winml analyze, winml compile, or winml build.

--device (high-level)

Accepts one of four values: auto, cpu, gpu, or npu. When set to auto (the default), winml-cli inspects the machine and selects the highest-priority device class that has a compatible EP available, in the order NPU > GPU > CPU. Setting an explicit value such as --device npu requests a device category without naming the EP.

For winml analyze, --device also accepts all — this evaluates the model against every device that has rule data, producing a side-by-side compatibility report.

# Let winml-cli pick the best available device
winml analyze --model model.onnx --device auto

# Target the NPU device class
winml analyze --model model.onnx --device npu

# Analyze against all devices at once (analyze only)
winml analyze --model model.onnx --device all

--ep (low-level override)

Accepts a valid EP name or alias (for example qnn, vitisai, dml, openvino), or auto to let winml-cli resolve the EP from the device. When --ep is provided with a specific value it takes precedence over --device and bypasses device-class resolution entirely. Use --ep when you need to pin a specific provider — for instance to compare QNNExecutionProvider against DmlExecutionProvider on the same machine.

For winml analyze, --ep also accepts all — this evaluates the model against every registered EP simultaneously.

# Force Qualcomm QNN regardless of device selection
winml analyze --model model.onnx --ep QNNExecutionProvider --device npu

# Use the short alias; winml-cli normalizes it to the full name
winml analyze --model model.onnx --ep qnn

# Analyze against all EPs at once (analyze only)
winml analyze --model model.onnx --ep all

The --ep flag accepts a free-form string and is not restricted to the choices listed above. This allows forward compatibility with EP names that winml-cli does not yet enumerate.

Custom EP locations

Set WINMLCLI_EP_PATH to discover custom builds of supported EP plugins. It accepts both directories and individual DLL files, separated by ; on Windows:

$env:WINMLCLI_EP_PATH = "C:\custom-ep;D:\qnn\onnxruntime_providers_qnn.dll"
winml sys --list-ep
winml perf -m "C:\models\model.onnx" --ep qnn@directory --device npu

Directories are scanned for known EP DLL filenames. A file entry selects only that DLL, not other EPs in its folder. Known filenames identify the EP case-insensitively. For arbitrary DLL filenames, specify the EP explicitly:

$env:WINMLCLI_EP_PATH = "D:\custom\my_ep.dll;C:\other-ep"
winml perf -m "C:\models\model.onnx" --ep vitisai@directory --device npu

Unknown-name DLL file entries are tried for the requested EP. Known filenames belonging to a different EP are not tried. Folder entries never scan arbitrary DLL names. winml sys --list-ep ignores unknown filenames because it has no requested EP to associate them with. Missing paths and non-DLL files produce warnings and are skipped.

Entries are considered left to right, before default discovery. Runtime device selection uses the first candidate that loads and exposes the requested EP and device; a failed candidate does not prevent trying later entries. Listing the same DLL as both a file and through its directory does not create duplicate entries. Both forms use the directory source tag, so commands supporting source pinning can use --ep qnn@directory; build and config currently require plain --ep qnn.

Keep the plugin's dependencies available as required by its distribution. The DLL must be compatible with the installed ONNX Runtime and process architecture; discovery by filename does not guarantee that it can be loaded.

Explicit DLL file paths are treated literally, including brackets in filenames. ORT GenAI validates each candidate's EP identity through regular ORT before loading it into GenAI, since GenAI does not expose EP enumeration. Its cache tracks both DLL path and validated EP. Failed identity checks or GenAI library loads allow the next candidate to be tried. This preflight does not guarantee GenAI model compatibility; that is checked when the model is loaded.

Default discovery only inspects already-ready Windows ML Catalog providers; it does not prepare or download non-ready providers. A source-pinned request such as --ep vitisai@directory does not acquire a Catalog package if the requested directory source is missing.

See also

  • Graphs and IR — ONNX graph format, operator sets, and the IR that EPs consume
  • Weight and Activation — tensor roles relevant to EP compatibility
  • winml sys — list available devices and EPs on the current machine
  • winml analyze — check ONNX operator compatibility against a specific EP