Skip to content

[Build] QNN EP asserts in X64/Debug tests #25778

@a-jmist

Description

@a-jmist

Describe the issue

These tests all assert in onnxruntime_test_all when built for rel-1.23.0 branch, with config: Debug / QNN EP / X64:

  • QnnCPUBackendTests.AveragePool_3D_AsGlobal
  • QnnCPUBackendTests.MaxPool_3D
  • QnnCPUBackendTests.GlobalAveragePool_3D
Image

File is \onnxruntime\onnxruntime\core\providers\qnn\builder\opbuilder\pool_op_builder.cc, line 104

Assert is checking input_shape.size(), kernel_shape.size, stride.size() and pads.size(). Setting all checks to >= lets the tests pass, so at least the code isn't accessing out of bounds.

Urgency

  • Debug build is itself not urgent, until we need to actually debug anything more detailed than we can do with RelWithDebug.
  • If the assert is indicating a fundamental error that could also manifest in Release builds, then urgency will increase
  • Pipeline builds will fail (because there is no user to click on "Ignore").

Target platform

Windows/x64

Build script

python.exe ./tools/ci_build/build.py --config Debug --cmake_generator "Visual Studio 17 2022" --build_shared_lib --parallel 16 --build_dir build_x64-qnn  --cmake_extra_defines onnxruntime_ENABLE_MEMLEAK_CHECKER=OFF --cmake_extra_defines "onnxruntime_USE_NEURAL_SPEED=OFF" --use_qnn --qnn_home "..\deps\qnn_sdk\build\sdk" --enable_msvc_static_runtime --use_binskim_compliant_compile_flags

Error / output

Image

Visual Studio Version

17.14.12

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    buildbuild issues; typically submitted using templateep:QNNissues related to QNN exeution provider

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions