Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to build for training on Windows 11 #23128

Closed
Exploiterigoer opened this issue Dec 17, 2024 · 2 comments
Closed

Fail to build for training on Windows 11 #23128

Exploiterigoer opened this issue Dec 17, 2024 · 2 comments
Labels
build build issues; typically submitted using template ep:WebGPU ort-web webgpu provider .NET Pull requests that update .net code platform:mobile issues related to ONNX Runtime mobile; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template platform:windows issues related to the Windows platform

Comments

@Exploiterigoer
Copy link

Describe the issue

Hi, I am not familiar with c++ project, but I want to train model using onnxruntime based on Windows on my local machine, and then I download the onnxruntime open source project and read the instructions on compilation, but I fail to build.

My python executable binary is from miniconda, which is installed in d:/miniconda. Addtional,I have to change the python path in build.bat, ohterwise nothing happends when executing the build.bat. The python version is 3.12.7.

Image

Urgency

No response

Target platform

Windows x64

Build script

.\build.bat --config RelWithDebInfo --cmake_generator "Visual Studio 17 2022" --build_shared_lib --parallel 8 --enable_training --skip_tests --use_dml --use_webgpu --enable_msvc_static_runtime

Error / output

Synchronizing submodule url for 'cmake/external/emsdk'
Synchronizing submodule url for 'cmake/external/libprotobuf-mutator'
Synchronizing submodule url for 'cmake/external/onnx'
Synchronizing submodule url for 'cmake/external/onnx/third_party/benchmark'
Synchronizing submodule url for 'cmake/external/onnx/third_party/pybind11'
Requirement already satisfied: setuptools in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 1)) (75.1.0)
Requirement already satisfied: wheel in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 2)) (0.44.0)
Requirement already satisfied: pytest in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 3)) (8.3.4)
Requirement already satisfied: numpy>=1.19.0 in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 4)) (1.26.4)
Requirement already satisfied: sympy>=1.10 in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 5)) (1.12.1)
Requirement already satisfied: packaging in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 6)) (24.1)
Requirement already satisfied: cerberus in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 7)) (1.3.5)
Requirement already satisfied: psutil in d:\miniconda\lib\site-packages (from -r requirements/pybind/requirements.txt (line 8)) (5.9.8)
Requirement already satisfied: colorama in d:\miniconda\lib\site-packages (from pytest->-r requirements/pybind/requirements.txt (line 3)) (0.4.6)
Requirement already satisfied: iniconfig in d:\miniconda\lib\site-packages (from pytest->-r requirements/pybind/requirements.txt (line 3)) (2.0.0)
Requirement already satisfied: pluggy<2,>=1.5 in d:\miniconda\lib\site-packages (from pytest->-r requirements/pybind/requirements.txt (line 3)) (1.5.0)
Requirement already satisfied: mpmath<1.4.0,>=1.1.0 in d:\miniconda\lib\site-packages (from sympy>=1.10->-r requirements/pybind/requirements.txt (line 5)) (1.3.0)
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Loading Dependencies URLs ...
-- Loading Dependencies ...
-- Populating abseil_cpp
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/abseil_cpp-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Abseil source dir:D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/abseil_cpp-src
-- Populating re2
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/re2-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating googletest
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/googletest-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating utf8_range
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/utf8_range-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating protobuf
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/protobuf-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

--
-- 3.21.12.0
-- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
-- Populating date
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/date-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating mp11
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/mp11-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating nlohmann_json
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/nlohmann_json-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Using the single-header code from D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/nlohmann_json-src/single_include/
-- Populating pytorch_cpuinfo
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/pytorch_cpuinfo-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating pytorch_clog
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/pytorch_clog-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating gsl
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/gsl-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating safeint
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/safeint-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating flatbuffers
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/flatbuffers-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Proceeding with version: 23.5.26.0
-- CMAKE_CXX_FLAGS: /MP8 /Zc:__cplusplus /EHsc /wd26812 -DEIGEN_HAS_C99_MATH -DCPUINFO_SUPPORTED
-- Populating onnx
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/onnx-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Found PythonInterp: D:/miniconda/python.exe (found version "3.12.7")

-- ******** Summary ********
-- CMake version : 3.26.6
-- CMake command : D:/goenv/cmake/bin/cmake.exe
-- System : Windows
-- C++ compiler : D:/msvc/Microsoft Visual Studio2022/VC/Tools/MSVC/14.42.34433/bin/Hostx64/x64/cl.exe
-- C++ compiler version : 19.42.34435.0
-- CXX flags : /MP8 /Zc:__cplusplus /EHsc /wd26812 -DEIGEN_HAS_C99_MATH -DCPUINFO_SUPPORTED /EHsc /wd26812
-- Build type : RelWithDebInfo
-- Compile definitions : ORT_ENABLE_STREAM;EIGEN_MPL2_ONLY;EIGEN_HAS_CONSTEXPR;EIGEN_HAS_VARIADIC_TEMPLATES;EIGEN_HAS_CXX11_MATH;EIGEN_HAS_CXX11_ATOMIC;EIGEN_STRONG_INLINE=inline;__STDC_FORMAT_MACROS
-- CMAKE_PREFIX_PATH : D:\msvc\proj\onnxruntime\build\Windows/RelWithDebInfo/installed
-- CMAKE_INSTALL_PREFIX : C:/Program Files/onnxruntime
-- CMAKE_MODULE_PATH : D:/msvc/proj/onnxruntime/cmake/external

-- ONNX version : 1.16.1
-- ONNX NAMESPACE : onnx
-- ONNX_USE_LITE_PROTO : ON
-- USE_PROTOBUF_SHARED_LIBS : OFF
-- Protobuf_USE_STATIC_LIBS : ON
-- ONNX_DISABLE_EXCEPTIONS : OFF
-- ONNX_DISABLE_STATIC_REGISTRATION : OFF
-- ONNX_WERROR : OFF
-- ONNX_BUILD_TESTS : OFF
-- ONNX_BUILD_BENCHMARKS : OFF
-- ONNX_BUILD_SHARED_LIBS :
-- BUILD_SHARED_LIBS : OFF

-- Protobuf compiler :
-- Protobuf includes :
-- Protobuf libraries :
-- BUILD_ONNX_PYTHON : OFF
-- Could NOT find Eigen3 (missing: Eigen3_DIR)
-- Populating eigen
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.1s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/eigen-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating microsoft_wil
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/microsoft_wil-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Aten fallback is enabled.
-- Populating dlpack
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.1s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dlpack-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating cxxopts
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/cxxopts-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- cxxopts version 2.2.0
-- Populating coremltools
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/coremltools-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating dawn
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Dawn build D3D11 backend: OFF
-- Dawn build D3D12 backend: ON
-- Dawn build Metal backend: OFF
-- Dawn build Vulkan backend: OFF
-- Dawn build OpenGL backend: OFF
-- Dawn build OpenGL ES backend: OFF
-- Dawn build Emscripten: OFF
-- Dawn build Null backend: OFF

-- Dawn enable SPIR-V validation: OFF

-- Dawn build with ASAN: OFF
-- Dawn build with TSAN: OFF
-- Dawn build with MSAN: OFF
-- Dawn build with UBSAN: OFF
-- Dawn enable install: OFF

-- Dawn build with asserts in all configurations: OFF
-- Dawn build Wayland support: OFF
-- Dawn build X11 support: OFF
-- Dawn build GLFW support: OFF
-- Dawn build Windows UI support: OFF
-- Dawn build and use DXC: ON
-- Dawn enable DXC asserts in non-debug builds: OFF
-- Dawn target MacOS: OFF

-- Dawn build samples: OFF
-- Dawn build Node bindings: OFF
-- Dawn build Swiftshader: OFF
-- Dawn build benchmarks: OFF
-- Dawn build protobuf: OFF

-- Dawn build PIC: OFF
-- DAWN Werror: OFF

-- Dawn emit coverage: OFF
-- LLVM Source dir:

-- Tint build SPIR-V reader: OFF
-- Tint build WGSL reader: ON
-- Tint build GLSL writer: OFF
-- Tint build GLSL validator: OFF
-- Tint build HLSL writer: ON
-- Tint build MSL writer: OFF
-- Tint build SPIR-V writer: OFF
-- Tint build WGSL writer: ON
-- Tint build Syntax Tree writer: OFF

-- Tint build command line executable tools: OFF
-- Tint install: OFF
-- Tint build fuzzers: OFF
-- Tint build IR binary: OFF
-- Tint build IR fuzzer: OFF
-- Tint build benchmarks: OFF
-- Tint build tests: OFF
-- Tint build tintd: OFF

-- Tint enable break in debugger: OFF
-- Tint build checking [chromium-style]: OFF
-- Tint randomize hashes: OFF

-- Dawn third_party dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party
-- Dawn GLFW dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/glfw
-- Dawn Jinja2 dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/jinja2
-- Dawn MarkupSafe dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/markupsafe
-- Dawn Khronos dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/khronos
-- Dawn Swiftshader dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/swiftshader
-- Dawn Protobuf dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/protobuf
-- Dawn LPM dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/libprotobuf-mutator/src
-- Dawn Emdawnwebgpu dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/emdawnwebgpu
-- Dawn Spir-Tools dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/spirv-tools/src
-- Dawn Spirv-Headers dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/spirv-headers/src
-- Dawn Glslang dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/glslang/src
-- Dawn Vulkan Headers dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/vulkan-headers/src
-- Dawn Vulkan Utility Libraries dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/vulkan-utility-libraries/src

-- Node Addon API dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/node-addon-api
-- Node API Headers dir: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/node-api-headers
-- Webgpu IDL path: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/gpuweb/webgpu.idl
-- Go exe: go

-- Dawn fetch dependencies: ON
-- Dawn build monolithic library: OFF

-- Dawn Emscripten toolchain: OFF

-- Dawn: using python at D:/miniconda/python.exe
-- Running fetch_dawn_dependencies:
-- -- Listing dependencies from D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src
-- -- Fetching dependency 'third_party/abseil-cpp'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\abseil-cpp' from 'https://chromium.googlesource.com/chromium/src/third_party/abseil-cpp'
-- -- Checking out tag 'f81f6c011baf9b0132a5594c034fe0060820711d'
-- -- Fetching dependency 'third_party/dxc'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\dxc' from 'https://chromium.googlesource.com/external/github.com/microsoft/DirectXShaderCompiler'
-- -- Checking out tag '848b7c42bd8da13693273513412c0a554c7918a1'
-- -- Fetching dependency 'third_party/dxheaders'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\dxheaders' from 'https://chromium.googlesource.com/external/github.com/microsoft/DirectX-Headers'
-- -- Checking out tag '980971e835876dc0cde415e8f9bc646e64667bf7'
-- -- Fetching dependency 'third_party/glfw'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\glfw' from 'https://chromium.googlesource.com/external/github.com/glfw/glfw'
-- -- Checking out tag 'b35641f4a3c62aa86a0b3c983d163bc0fe36026d'
-- -- Fetching dependency 'third_party/jinja2'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\jinja2' from 'https://chromium.googlesource.com/chromium/src/third_party/jinja2'
-- -- Checking out tag 'e2d024354e11cc6b041b0cff032d73f0c7e43a07'
-- -- Fetching dependency 'third_party/khronos/EGL-Registry'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\khronos\EGL-Registry' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/EGL-Registry'
-- -- Checking out tag '7dea2ed79187cd13f76183c4b9100159b9e3e071'
-- -- Fetching dependency 'third_party/khronos/OpenGL-Registry'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\khronos\OpenGL-Registry' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/OpenGL-Registry'
-- -- Checking out tag '5bae8738b23d06968e7c3a41308568120943ae77'
-- -- Fetching dependency 'third_party/libprotobuf-mutator/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\libprotobuf-mutator\src' from 'https://chromium.googlesource.com/external/github.com/google/libprotobuf-mutator.git'
-- -- Checking out tag 'a304ec48dcf15d942607032151f7e9ee504b5dcf'
-- -- Fetching dependency 'third_party/protobuf'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\protobuf' from 'https://chromium.googlesource.com/chromium/src/third_party/protobuf'
-- -- Checking out tag 'da2fe725b80ac0ba646fbf77d0ce5b4ac236f823'
-- -- Fetching dependency 'third_party/markupsafe'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\markupsafe' from 'https://chromium.googlesource.com/chromium/src/third_party/markupsafe'
-- -- Checking out tag '0bad08bb207bbfc1d6f3bbc82b9242b0c50e5794'
-- -- Fetching dependency 'third_party/glslang/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\glslang\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang'
-- -- Checking out tag '10fb91c403b2f5e2142c751884dd12ed3fb13952'
-- -- Fetching dependency 'third_party/google_benchmark/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\google_benchmark\src' from 'https://chromium.googlesource.com/external/github.com/google/benchmark.git'
-- -- Checking out tag '761305ec3b33abf30e08d50eb829e19a802581cc'
-- -- Fetching dependency 'third_party/googletest'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\googletest' from 'https://chromium.googlesource.com/external/github.com/google/googletest'
-- -- Checking out tag '7a7231c442484be389fdf01594310349ca0e42a8'
-- -- Fetching dependency 'third_party/spirv-headers/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\spirv-headers\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers'
-- -- Checking out tag '36d5e2ddaa54c70d2f29081510c66f4fc98e5e53'
-- -- Fetching dependency 'third_party/spirv-tools/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\spirv-tools\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Tools'
-- -- Checking out tag 'f3c4a5053f1bd34056282e56659659873f9d47ad'
-- -- Fetching dependency 'third_party/vulkan-headers/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\vulkan-headers\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Headers'
-- -- Checking out tag '36872f9062b17b1a30b8ed1d81ca5ea6bb608a72'
-- -- Fetching dependency 'third_party/vulkan-loader/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\vulkan-loader\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Loader'
-- -- Checking out tag '081b529a37f43249225114c4c0dea12a29ce605f'
-- -- Fetching dependency 'third_party/vulkan-utility-libraries/src'
-- -- Updating 'D:\msvc\proj\onnxruntime\build\Windows\RelWithDebInfo_deps\dawn-src\third_party\vulkan-utility-libraries\src' from 'https://chromium.googlesource.com/external/github.com/KhronosGroup/Vulkan-Utility-Libraries'
-- -- Checking out tag 'b538fb5b08513aa78346cd414ad5e576a2a3e920'
-- Dawn: using SPIRV-Headers at D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/spirv-headers/src
-- Dawn: using SPIRV-Tools at D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/spirv-tools/src

Adding DXC to build:

-- Dawn: using jinja2 at D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/jinja2
-- Dawn: using markupsafe at D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/dawn-src/third_party/markupsafe
-- Dawn: Configuring DawnGenerator for Dawn WebGPU Emscripten headers.
-- Dawn: Configuring DawnGenerator for Dawn WebGPU Emscripten JS files.
-- Dawn: Configuring DawnGenerator for Dawn headers.
-- Dawn: Configuring DawnGenerator for Dawn C++ headers.
-- Dawn: Configuring DawnGenerator for Dawn version based utilities.
-- Dawn: Configuring DawnGenerator for Dawn GPU info utilities.
-- Dawn: Configuring DawnGenerator for Dawn wire.
-- Dawn: Configuring DawnGenerator for Dawn native utilities.
-- Dawn: Configuring DawnGenerator for Dawn C++ wrapper.
-- Dawn: Configuring DawnGenerator for WebGPU headers.
-- Finished fetching external dependencies
-- Populating directx_headers
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.1s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/directx_headers-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating tensorboard
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/tensorboard-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Python Build is enabled
-- Populating psimd
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/psimd-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating fp16
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/fp16-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- Populating pybind11_project
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.22631.
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: D:/msvc/proj/onnxruntime/build/Windows/RelWithDebInfo/_deps/pybind11_project-subbuild
适用于 .NET Framework MSBuild 版本 17.12.12+1cce77968

-- pybind11 v2.13.1
-- Found PythonInterp: D:/miniconda/python.exe (found suitable version "3.12.7", minimum required is "3.7")
-- Configuring incomplete, errors occurred!
Namespace(build_dir='D:\msvc\proj\onnxruntime\\build\Windows', config=['RelWithDebInfo'], update=False, build=False, clean=False, parallel=8, nvcc_threads=-1, test=False, skip_tests=True, compile_no_warning_as_error=False, enable_nvtx_profile=False, enable_memory_profile=False, enable_training=True, enable_training_apis=False, enable_training_ops=False, enable_nccl=False, mpi_home=None, nccl_home=None, use_mpi=False, enable_onnx_tests=False, path_to_protoc_exe=None, fuzz_testing=False, enable_symbolic_shape_infer_tests=False, gen_doc=None, gen_api_doc=False, use_cuda=False, cuda_version=None, cuda_home=None, cudnn_home=None, enable_cuda_line_info=False, enable_cuda_nhwc_ops=False, disable_cuda_nhwc_ops=False, enable_pybind=False, build_wheel=False, wheel_name_suffix=None, skip_keras_test=False, build_csharp=False, build_nuget=False, msbuild_extra_options=None, build_java=False, build_nodejs=False, build_objc=False, build_shared_lib=True, build_apple_framework=False, cmake_extra_defines=None, target=None, x86=False, rv64=False, arm=False, arm64=False, arm64ec=False, buildasx=False, riscv_toolchain_root='', riscv_qemu_path='', msvc_toolset=None, windows_sdk_version=None, android=False, android_abi='arm64-v8a', android_api=27, android_sdk_path='', android_ndk_path='', android_cpp_shared=False, android_run_emulator=False, use_gdk=False, gdk_edition='.', gdk_platform='Scarlett', enable_wasm_memory64=False, ios=False, visionos=False, macos=None, apple_sysroot='', ios_toolchain_file='', visionos_toolchain_file='', xcode_code_signing_team_id='', xcode_code_signing_identity='', cmake_generator='Visual Studio 17 2022', osx_arch='x86_64', apple_deploy_target=None, enable_address_sanitizer=False, use_binskim_compliant_compile_flags=False, disable_memleak_checker=False, use_vcpkg=False, build_wasm=False, build_wasm_static_lib=False, emsdk_version='3.1.59', enable_wasm_simd=False, enable_wasm_threads=False, disable_wasm_exception_catching=False, enable_wasm_api_exception_catching=False, enable_wasm_exception_throwing_override=True, wasm_run_tests_in_browser=False, enable_wasm_profiling=False, enable_wasm_debug_info=False, wasm_malloc=None, emscripten_settings=None, use_extensions=False, extensions_overridden_path=None, cmake_path='cmake', ctest_path='ctest', skip_submodule_sync=False, use_mimalloc=False, use_dnnl=False, dnnl_gpu_runtime='', dnnl_opencl_root='', use_openvino=None, dnnl_aarch64_runtime='', dnnl_acl_root='', use_coreml=False, use_webnn=False, use_snpe=False, snpe_root=None, use_nnapi=False, use_vsinpu=False, nnapi_min_api=None, use_jsep=False, use_webgpu=True, use_external_dawn=False, use_qnn=False, qnn_home=None, use_rknpu=False, use_preinstalled_eigen=False, eigen_path=None, enable_msinternal=False, use_vitisai=False, use_tensorrt=False, use_tensorrt_builtin_parser=True, use_tensorrt_oss_parser=False, tensorrt_home=None, test_all_timeout='10800', use_migraphx=False, migraphx_home=None, use_full_protobuf=False, skip_onnx_tests=False, skip_winml_tests=False, skip_nodejs_tests=False, enable_msvc_static_runtime=True, use_dml=True, dml_path='', use_winml=False, winml_root_namespace_override=None, dml_external_project=False, use_telemetry=False, enable_wcos=False, enable_lto=False, enable_transformers_tool_test=False, use_acl=False, acl_home=None, acl_libs=None, use_armnn=False, armnn_relu=False, armnn_bn=False, armnn_home=None, armnn_libs=None, build_micro_benchmarks=False, minimal_build=None, include_ops_by_config=None, enable_reduced_operator_type_support=False, disable_contrib_ops=False, disable_ml_ops=False, disable_rtti=False, disable_types=[], disable_exceptions=False, rocm_version=None, use_rocm=False, rocm_home=None, code_coverage=False, enable_lazy_tensor=False, ms_experimental=False, enable_external_custom_op_schemas=False, external_graph_transformer_path=None, enable_cuda_profiling=False, use_cann=False, cann_home=None, enable_rocm_profiling=False, use_xnnpack=False, use_avx512=False, use_azure=False, use_cache=False, use_triton_kernel=False, use_lock_free_queue=False)

Visual Studio Version

Visual Studio 17 2022

GCC / Compiler Version

No response

@Exploiterigoer Exploiterigoer added the build build issues; typically submitted using template label Dec 17, 2024
@github-actions github-actions bot added .NET Pull requests that update .net code ep:WebGPU ort-web webgpu provider platform:mobile issues related to ONNX Runtime mobile; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template platform:windows issues related to the Windows platform labels Dec 17, 2024
@fdwr fdwr changed the title Fail to build for traning on Windows 11 Fail to build for training on Windows 11 Dec 17, 2024
@snnn
Copy link
Member

snnn commented Dec 17, 2024

Sorry you cannot build so many features together. Please remove the training flag and choose only one from " --use_dml" and "--use_webgpu"

@snnn snnn closed this as not planned Won't fix, can't repro, duplicate, stale Dec 17, 2024
@Exploiterigoer
Copy link
Author

But wether I only use --enable_training , remove --enable_dml, --enable_wgpu or only use --enable_dml , remove --enable_traning, --enable_wgpu, it reports the same error in the latest release and version 1.19.2.

By the way, I would like to inquire if there is an official ONNX Runtime release version that has been built with the DirectML library for windows?

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build build issues; typically submitted using template ep:WebGPU ort-web webgpu provider .NET Pull requests that update .net code platform:mobile issues related to ONNX Runtime mobile; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template platform:windows issues related to the Windows platform
Projects
None yet
Development

No branches or pull requests

2 participants