Skip to content

[Bug] Auto EP selection rejects the combination of DML EP with other EPs like OpenVINO EP #25504

Description

On my device with the Intel CPU, and both NVIDIA and Intel GPUs, if the DML EP and OpenVINO EP are both registered, PreferGpuEpPolicy::SelectProvidersForDevices will select three EP devices: DML GPU for NVIDIA, OpenVINO CPU for Intel and default ORT CPU during the session initialization. But the InferenceSession::HasInvalidCombinationOfExecutionProviders method rejects the combination of DML EP with OpenVINO EP, and reports error: "DML EP can be used with only CPU EP." which causes session initialization to fail.

  1. Is it true that DML EP can only be used with the default CPU EP?
  2. If so, why not reject the combination in PreferGpuEpPolicy::SelectProvidersForDevices earlier? It doesn't make sense an invalid combination can be created and then be rejected with an error.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    ep:DMLissues related to the DirectML execution providerep:OpenVINOissues related to OpenVINO execution provider

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions