microsoft / microsoft/onnxruntime

[Feature Request] Add vulkan execution provider

Open
#21,917 26 comments 54 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
C++
Stars
21.9k
Forks
4.2k
Avg merge
4d 11h
Merged PRs (30d)
184

Description

Describe the feature request

Please consider adding Vulkan as an execution provider. Vulkan offers several advantages over DirectML, Rocm, Migraph, and Cuda:

  • Easier Compilation: Vulkan simplifies the compilation process, requiring fewer and lighter dependencies across both Linux and Windows.
  • Lightweight Dependencies: Vulkan eliminates the need for heavy dependencies and large packages required by Cuda on Linux.
  • Cross-Platform Efficiency: Unlike Rocm, Vulkan operates efficiently on both Linux and Windows without the burden of extensive dependencies.
  • Reduced Footprint: On Windows, Vulkan avoids the need for the 300MB dependencies required by Cuda.
  • Wide Compatibility: Vulkan works seamlessly out-of-the-box on Windows with a variety of GPUs.
  • Unified Provider: A single Vulkan execution provider can support GPUs/CPUs across AMD, Nvidia, and Intel platforms.

By the way, the Vulkan license is open for both commercial and non-commercial use.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The request names no files, tests, or entry points. Start by reviewing ONNX Runtime's existing DirectML, ROCm, MIGraphX, and CUDA execution providers, then determine the design and validation needed for a Vulkan provider supporting the stated platforms and GPUs.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.