From 78c5644abbb5448da39da426dd02e13d124a04f5 Mon Sep 17 00:00:00 2001 From: mingmingtasd Date: Thu, 21 Apr 2022 16:32:55 +0800 Subject: [PATCH] Upgrade DirectML version to 1.6.0 --- src/webnn_native/BUILD.gn | 6 +++--- src/webnn_native/dml/deps/script/download_dml.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/webnn_native/BUILD.gn b/src/webnn_native/BUILD.gn index 33cf6c3ca..3d6b9ffd1 100644 --- a/src/webnn_native/BUILD.gn +++ b/src/webnn_native/BUILD.gn @@ -234,7 +234,7 @@ source_set("webnn_native_sources") { ] include_dirs += - [ "${webnn_root}/third_party/microsoft.ai.directml.1.5.1/include" ] + [ "${webnn_root}/third_party/microsoft.ai.directml.1.6.0/include" ] if (build_with_chromium) { include_dirs += [ "${webnn_dawn_root}/src/dawn/native/dml/deps/src" ] } else { @@ -242,7 +242,7 @@ source_set("webnn_native_sources") { } lib_dirs += - [ "${webnn_root}/third_party/microsoft.ai.directml.1.5.1/bin/x64-win" ] + [ "${webnn_root}/third_party/microsoft.ai.directml.1.6.0/bin/x64-win" ] libs += [ "dxgi.lib", @@ -441,7 +441,7 @@ if (webnn_enable_dml) { dml_dll = "DirectML.dll" os_folder = "x64-win" dml_dll_path = - "${webnn_root}/third_party/microsoft.ai.directml.1.5.1/bin/${os_folder}" + "${webnn_root}/third_party/microsoft.ai.directml.1.6.0/bin/${os_folder}" copy("copy_dml_dll") { sources = [ "${dml_dll_path}/${dml_dll}" ] outputs = [ "$root_out_dir/{{source_file_part}}" ] diff --git a/src/webnn_native/dml/deps/script/download_dml.py b/src/webnn_native/dml/deps/script/download_dml.py index c95e81402..703b0fc90 100644 --- a/src/webnn_native/dml/deps/script/download_dml.py +++ b/src/webnn_native/dml/deps/script/download_dml.py @@ -23,7 +23,7 @@ dml_feed_url = 'https://api.nuget.org/v3/index.json' dml_resource_id = 'microsoft.ai.directml' -dml_resource_version = '1.5.1' +dml_resource_version = '1.6.0' dependency_dir = '../../../../../third_party' dml_bin_path = f'{dependency_dir}/{dml_resource_id}.{dml_resource_version}/bin/x64-win/'