Update xnnpack.cmake for WASM build#24860
Conversation
|
could you please merge to latest main branch (which fixes the web CI) |
15de0e1 to
366e204
Compare
|
@fs-eire , Thank you for reminding me! This change is rebased. After rebasing to the current head, I'm seeing build failure on both x64(linux) and WASM target with --use_xnnpack. This failure comes with a recent commit (e55ce52). Bypass it at https://github.com/microsoft/onnxruntime/blob/main/cmake/CMakeLists.txt#L1930 seems to help keep the main build green. |
|
@microsoft-github-policy-service agree company="Intel" |
|
@fanchenkong1 what is your full build commandline and platform? I ran into a problem related to google/XNNPACK#8488 when I try to build with XNNPACK. ONNX Runtime handled this issue https://github.com/microsoft/onnxruntime/blob/main/cmake/external/abseil-cpp.cmake#L13-L21 but this causes other problem: This error is expected since absl installation is disabled explicitly. we probably need to patch the XNNPACK CMakeLists.txt and revert the change in cmake/external/abseil-cpp.cmake. (Seems not happening on Linux/macOS, so maybe this is a Windows only problem?) |
That's the issue I encountered. I build for x64 native and wasm on ubuntu. The command I use is, x64: ./build.sh --build_dir=build_native_testing --config RelWithDebInfo --use_xnnpack |
|
@fs-eire, I noticed your fix has been merged into XNNPACK (google/XNNPACK#8552). Do you have plans to upgrade the XNNPACK here soon? Once that’s done, I can rebase and verify my changes accordingly. |
Sorry for the late reply. I will work on a change to bump the XNNPACK version to include it. |
Thank you for your help despite being so busy. If anything we can do to offload you a little bit, feel free to let us know. |
366e204 to
3655780
Compare
|
Hi @fs-eire, could you help rerun the tests for this PR? This change shouldn’t affect the Windows x86 release. |
|
/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline |
|
Azure Pipelines successfully started running 4 pipeline(s). |
|
/azp run Linux QNN CI Pipeline, Win_TRT_Minimal_CUDA_Test_CI, Windows ARM64 QNN CI Pipeline, Windows GPU Doc Gen CI Pipeline |
|
Azure Pipelines successfully started running 4 pipeline(s). |
Description
This change updates the xnnpack.cmake file to reflect changes in XNNPACK's CMake and Bazel build files.
Motivation and Context
Fixes the WASM build issue with --use_xnnpack (#23460).