Skip to content

Is DML being deprecated? #23783

Closed
Closed

Description

Describe the issue

With Patrice Vignola (@PatriceVignola) gone and the last update to directML 4 months ago, and with DML not being updated to support new features like the adapters API, is DirectML being left to die? Would be pretty important information to developers if that's the case to avoid building their applications with it if it's now essentially being deprecated.

To reproduce

Try and use the Adapters API with DML. It doesn't work. Effort to make it work have been reverted.

Urgency

No response

Platform

Windows

OS Version

11

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.2

ONNX Runtime API

Python

Architecture

X64

Execution Provider

DirectML

Execution Provider Library Version

No response

Activity

  1. added
    ep:DMLissues related to the DirectML execution provider
    on Feb 21, 2025
  2. fdwr commented on Feb 21, 2025

    @fdwr
    Contributor
  3. rinkucat commented on Feb 23, 2025

    @rinkucat

    i too want to know

  4. rinkucat commented on Feb 23, 2025

    @rinkucat

    currently directml has some issue with intel's integrated gpu like iris xe during machine learning model training(it may be intel's driver issue idk)
    it is not widely supported like cuda
    but still i want developers to support directml
    it is a great tool to be honest

  5. SSFRPA commented on Feb 26, 2025

    @SSFRPA

    If DirectML is to be discontinued, we hope to be informed as soon as possible. The issue mentioned here #20713 (comment) has not been resolved either. If updates are to be abandoned, we will need to consider alternative solutions.

  6. henryruhs commented on May 19, 2025

    @henryruhs

    From my understanding, the new Microsoft.Windows.AI.MachineLearning API eliminates the DirectML layer and therefore makes it obsolete.

    ... Windows ML in Microsoft.Windows.AI.MachineLearning doesn't have the DirectML layer. Instead, it works directly with dedicated execution providers for the GPU, affording you to-the-metal performance that's on par with dedicated SDKs...

    https://learn.microsoft.com/en-us/windows/ai/windows-ml/get-started

    https://learn.microsoft.com/en-us/windows/ai/new-windows-ml/overview

    https://blogs.windows.com/windowsdeveloper/2025/05/19/introducing-windows-ml-the-future-of-machine-learning-development-on-windows/

  7. carsonswope commented on Jul 25, 2025

    @carsonswope
    Contributor

    Well.. looks like DML is indeed dead. Bummer.

    Last week the readme on their repo (https://github.com/microsoft/DirectML/) was updated to say this at the top: ⚠️DirectML is in maintenance mode ⚠️

    At first glance 'Windows ML' looks... opinionated, very light on details, requires hitting microsoft servers at runtime, and isn't even out of beta yet (from https://learn.microsoft.com/en-us/windows/ai/new-windows-ml/run-onnx-models?tabs=csharp):

    The Windows ML APIs are currently experimental and not supported for use in production environments. Apps trying out these APIs should not be published to the Microsoft Store.
    

    Maybe DirectML can be open sourced now? :)

  8. fdwr commented on Jul 28, 2025

    @fdwr
    Contributor

    is DirectML being left to die?

    Ambrose Robinson (@ambroser53) Alas fellow Robinson, it is dead 🥲 (former dev here). DML had a nice ~7 year run, but now everybody on the old DML team has been reshuffled elsewhere to other products, except the occasional security/compliance issue. So it won't get performance improvements (like say using the new preview D3D cooperative vectors feature or new fusions) or get new ML operators, but it's also still a system DLL (windows/system32/DirectML.dll) and will continue to function for app compatibility (like GDI which still lingers around for years after its heyday 👻).

    Maybe DirectML can be open sourced now? :)

    Carson Swope (@carsonswope) That would be cool 😉, but I have no power over that decision. I would like to eventually publicly document some of the interesting aspects inside DirectML, at least parts that I worked on (kinda like how Raymond Chen's Old New Thing describes win32 internals).

  9. iperov commented on Aug 18, 2025

    @iperov
    Contributor

    Similarly onnxruntime and any other technology can suddenly die and your code will no longer work with new devices.
    The only thing that will work in tens of years is OpenCL1.2, unless of course the hardware developers themselves stop supporting it.

  10. TedThemistokleous commented on Aug 28, 2025

    @TedThemistokleous
    Contributor

    If any of you are using AMD hardware I suggest you migrate your workloads to MIGraphX EP. We do have Windows support via UAI and MIGraphX does build with Windows and support workloads on windows.

  11. henryruhs commented on Aug 30, 2025

    @henryruhs

    Ted Themistokleous (@TedThemistokleous) We (at FaceFusion) tried MIGraphX EP under Linux, it does not work due Invalid MIGraphX EP option.

    Seeing your comment is kinda confusing as we assume that ROCm is needed to run MIGraphX EP, so how does this work under Windows? Could you please explain what UAI is?

  12. TedThemistokleous commented on Sep 2, 2025

    @TedThemistokleous
    Contributor

    Henry Ruhs (@henryruhs) commented on this issue ticket, thanks for bringing it to my attention.

    Please let me know if you have any other question/concernss. If you have MIGraphx or MIGraphX EP related questions feel free to open an issue on the AMDMIGraphX directly - https://github.com/ROCm/AMDMIGraphX

    I don't have any visibility on the Onnxruntime issues/forums unless I'm pinged

    AMD is happy to help you get your application running using the ROCm and MIGraphX.

  13. raphaelmenges commented on Nov 3, 2025

    @raphaelmenges

    From the DirectML README.md:

    If your PC runs Windows 11, version 24H2 (build 26100) or later, consider using Windows ML for accelerated machine learning model execution.

    To my current understanding, Windows ML is just a wrapper for ONNX Runtime itself. Since ONNX Runtime most often uses the DirectML ep under Windows, as it is great to accelerate inference across vendors, I cannot wrap my head around the current siutation. DirectML was deprecated in favor of Windows ML, which probably uses DirectML through ONNX Runtime?

    Or is the idea that the vendor specific ep's are to be used in the future? Or the WebGPU ep?

  14. fdwr commented on Nov 3, 2025

    @fdwr
    Contributor

    Raphael Menges (@raphaelmenges):

    To my current understanding, Windows ML is just a wrapper for ONNX Runtime itself

    Pretty much. WinML 1.0's API was a subset WinRT flavored wrapper over ORT (but it supported some extra logic around image-to-tensor conversion and video frame support), whereas WinML 2.0's API is basically ORT's API.

    is the idea that the vendor specific ep's are to be used in the future?

    WinML 2.0 supports dynamic execution provider (EP) management, including IHV-specific EPs. Historically IHV EP's have been spotty in their operator coverage and ONNX conformance, being heavily focused on the needs of specific models rather than general completeness, and the DML EP remains as a base level catch-all for IHV-agnostic GPU execution, but IHV EPs (NVidia TensorRT, Intel OpenVINO, AMD Vitis, Qualcomm QNN) are becoming more mature and able to use hardware-specific model optimizations that DirectML could not access through the current D3D API via HLSL alone.

  15. raphaelmenges commented on Nov 4, 2025

    @raphaelmenges

    Thank you Dwayne Robinson (@fdwr) for the explanation! However, compiling and distributing all these vendor-specific execution providers is quite a nightmare. We just patched the OpenVINO ep to work in an Ubuntu 22.04 environment to have at least some hardware acceleration available on Linux. In comparison, using DirectML on Windows is a blessing. I hope for the WebGPU ep to be a viable cross-platform solution at some point, at least.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

ep:DMLissues related to the DirectML execution provider

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions