From 906f578be89cc5f841f30aa5f0f08030df42f63b Mon Sep 17 00:00:00 2001 From: Sumit Agarwal Date: Mon, 9 Jan 2023 13:00:56 -0800 Subject: [PATCH] [DML EP] Update DML_FEATURE_LEVEL 5.0 (#14172) ### Description DML EP was using very old feature level (2.0) which may lead to model (having latest operator) execution failure, if model is running against old DirectML.dll. ### Motivation and Context --- onnxruntime/core/providers/dml/dml_provider_factory.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onnxruntime/core/providers/dml/dml_provider_factory.cc b/onnxruntime/core/providers/dml/dml_provider_factory.cc index c8891cb214..9af5fd42b0 100644 --- a/onnxruntime/core/providers/dml/dml_provider_factory.cc +++ b/onnxruntime/core/providers/dml/dml_provider_factory.cc @@ -159,7 +159,7 @@ std::shared_ptr DMLProviderFactoryCreator::Create(int ComPtr dml_device; ORT_THROW_IF_FAILED(DMLCreateDevice1(d3d12_device.Get(), flags, - DML_FEATURE_LEVEL_2_0, + DML_FEATURE_LEVEL_5_0, IID_PPV_ARGS(&dml_device))); return CreateExecutionProviderFactory_DML(dml_device.Get(), cmd_queue.Get());