File tree 9 files changed +57
-10
lines changed
9 files changed +57
-10
lines changed Original file line number Diff line number Diff line change 51
51
--build_objc
52
52
--build_java
53
53
--build_wheel
54
- ${{ inputs.use_webgpu && '--use_webgpu --cmake_extra_defines onnxruntime_BUILD_DAWN_MONOLITHIC_LIBRARY=ON ' || '' }}
54
+ ${{ inputs.use_webgpu && '--use_webgpu' || '' }}
55
55
${{ inputs.use_xnnpack && '--use_xnnpack' || '' }}
56
56
${{ inputs.use_coreml && '--use_coreml' || '' }}
57
57
--use_vcpkg --use_vcpkg_ms_internal_asset_cache
Original file line number Diff line number Diff line change @@ -1067,7 +1067,11 @@ if (onnxruntime_USE_WEBGPU)
1067
1067
list (APPEND ORT_PROVIDER_FLAGS -DUSE_WEBGPU=1)
1068
1068
list (APPEND ONNXRUNTIME_PROVIDER_NAMES webgpu)
1069
1069
1070
- if (onnxruntime_USE_VCPKG AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten" )
1070
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
1071
+ # until we figure out how to resolve the packaging pipeline failures
1072
+ #
1073
+ # if (onnxruntime_USE_VCPKG AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
1074
+ if (FALSE )
1071
1075
if (NOT onnxruntime_BUILD_DAWN_MONOLITHIC_LIBRARY)
1072
1076
message (FATAL_ERROR "onnxruntime_USE_VCPKG is not supported with onnxruntime_BUILD_DAWN_MONOLITHIC_LIBRARY=OFF" )
1073
1077
endif ()
Original file line number Diff line number Diff line change @@ -625,7 +625,11 @@ endif()
625
625
626
626
627
627
if (onnxruntime_USE_WEBGPU)
628
- if (onnxruntime_USE_VCPKG AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten" )
628
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
629
+ # until we figure out how to resolve the packaging pipeline failures
630
+ #
631
+ # if (onnxruntime_USE_VCPKG AND NOT CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
632
+ if (FALSE )
629
633
# vcpkg does not support Emscripten yet
630
634
find_package (dawn REQUIRED)
631
635
else ()
@@ -739,7 +743,13 @@ if (onnxruntime_USE_WEBGPU)
739
743
# - (private) Force enable f16 support for NVIDIA Vulkan
740
744
# Dawn disabled f16 support for NVIDIA Vulkan by default because of crashes in f16 CTS tests (crbug.com/tint/2164).
741
745
# Since the crashes are limited to specific GPU models, we patched Dawn to remove the restriction.
742
- ${Patch_EXECUTABLE} --binary --ignore -whitespace -p1 < ${PROJECT_SOURCE_DIR} /patches/dawn/dawn_force_enable_f16_nvidia_vulkan.patch)
746
+ ${Patch_EXECUTABLE} --binary --ignore -whitespace -p1 < ${PROJECT_SOURCE_DIR} /patches/dawn/dawn_force_enable_f16_nvidia_vulkan.patch &&
747
+
748
+ # The dawn_fix_copy_dxil_dll.patch contains the following changes:
749
+ #
750
+ # - (private) Fix copy of dxil.dll in Dawn
751
+ # The patch ensures the copy of dxil.dll to be done after the build step of `dxcompiler` target.
752
+ ${Patch_EXECUTABLE} --binary --ignore -whitespace -p1 < ${PROJECT_SOURCE_DIR} /patches/dawn/dawn_fix_copy_dxil_dll.patch)
743
753
744
754
onnxruntime_fetchcontent_declare(
745
755
dawn
Original file line number Diff line number Diff line change @@ -177,7 +177,11 @@ if (WIN32)
177
177
endif ()
178
178
if (onnxruntime_USE_WEBGPU)
179
179
if (onnxruntime_ENABLE_DAWN_BACKEND_D3D12)
180
- if (onnxruntime_USE_VCPKG)
180
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
181
+ # until we figure out how to resolve the packaging pipeline failures
182
+ #
183
+ # if (onnxruntime_USE_VCPKG)
184
+ if (FALSE )
181
185
add_custom_command (
182
186
TARGET onnxruntime4j_jni POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different
183
187
$<TARGET_FILE:Microsoft::DXIL>
Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ endif()
74
74
if (onnxruntime_USE_WEBGPU)
75
75
set (NODEJS_BINDING_USE_WEBGPU "--use_webgpu" )
76
76
if (WIN32 AND onnxruntime_ENABLE_DAWN_BACKEND_D3D12)
77
- if (onnxruntime_USE_VCPKG)
77
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
78
+ # until we figure out how to resolve the packaging pipeline failures
79
+ #
80
+ # if (onnxruntime_USE_VCPKG)
81
+ if (FALSE )
78
82
list (APPEND NODEJS_DLL_DEPS "$<TARGET_FILE:Microsoft::DXIL>" )
79
83
list (APPEND NODEJS_DLL_DEPS "$<TARGET_FILE:Microsoft::DirectXShaderCompiler>" )
80
84
else ()
Original file line number Diff line number Diff line change 59
59
list (APPEND onnxruntime_DELAYLOAD_FLAGS "/DELAYLOAD:webgpu_dawn.dll" )
60
60
endif ()
61
61
62
- if (onnxruntime_USE_VCPKG)
62
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
63
+ # until we figure out how to resolve the packaging pipeline failures
64
+ #
65
+ # if (onnxruntime_USE_VCPKG)
66
+ if (FALSE )
63
67
# Fix Dawn vcpkg build issue (missing IMPORTED_IMPLIB and IMPORTED_LOCATION for target dawn::webgpu_dawn)
64
68
get_target_property (webgpu_dawn_target_IMPORTED_IMPLIB dawn::webgpu_dawn IMPORTED_IMPLIB )
65
69
if (NOT webgpu_dawn_target_IMPORTED_IMPLIB)
82
86
83
87
if (WIN32 AND onnxruntime_ENABLE_DAWN_BACKEND_D3D12)
84
88
# Ensure dxil.dll and dxcompiler.dll exist in the output directory $<TARGET_FILE_DIR:dxcompiler>
85
- if (onnxruntime_USE_VCPKG)
89
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
90
+ # until we figure out how to resolve the packaging pipeline failures
91
+ #
92
+ # if (onnxruntime_USE_VCPKG)
93
+ if (FALSE )
86
94
find_package (directx-dxc CONFIG REQUIRED)
87
95
target_link_libraries (onnxruntime_providers_webgpu Microsoft::DirectXShaderCompiler)
88
96
target_link_libraries (onnxruntime_providers_webgpu Microsoft::DXIL)
Original file line number Diff line number Diff line change @@ -1075,7 +1075,11 @@ endif()
1075
1075
1076
1076
if (onnxruntime_USE_WEBGPU)
1077
1077
if (WIN32 AND onnxruntime_ENABLE_DAWN_BACKEND_D3D12)
1078
- if (onnxruntime_USE_VCPKG)
1078
+ # TODO: the following code is used to disable building Dawn using vcpkg temporarily
1079
+ # until we figure out how to resolve the packaging pipeline failures
1080
+ #
1081
+ # if (onnxruntime_USE_VCPKG)
1082
+ if (FALSE )
1079
1083
add_custom_command (
1080
1084
TARGET onnxruntime_pybind11_state POST_BUILD
1081
1085
COMMAND ${CMAKE_COMMAND} -E copy
Original file line number Diff line number Diff line change
1
+ diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
2
+ index cdfde38819..fc5ff76421 100644
3
+ --- a/third_party/CMakeLists.txt
4
+ +++ b/third_party/CMakeLists.txt
5
+ @@ -352,6 +352,8 @@ function(AddSubdirectoryDXC)
6
+ TARGET copy_dxil_dll
7
+ COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DXIL_DLL_PATH} $<TARGET_FILE_DIR:dxcompiler>
8
+ COMMENT "Copying ${DXIL_DLL_PATH} to $<TARGET_FILE_DIR:dxcompiler>")
9
+ + # Ensure folder "$<TARGET_FILE_DIR:dxcompiler>" exists when copying the dll
10
+ + add_dependencies(copy_dxil_dll dxcompiler)
11
+ # Make dxc target depend on copy_dxil_dll
12
+ add_dependencies(dxc copy_dxil_dll)
13
+ endif()
Original file line number Diff line number Diff line change 93
93
},
94
94
"webgpu-ep" : {
95
95
"description" : " Build with WebGPU EP" ,
96
- "dependencies" : [{ "name" : " dawn " , "platform" : " !emscripten " } ]
96
+ "dependencies" : []
97
97
}
98
98
},
99
99
"overrides" : [
You can’t perform that action at this time.
0 commit comments