Skip to content

Conversation

@quic-boyuc
Copy link

Summary

  • Directly load QnnHtp.dll and query platform info using GetPlatformInfo API in the GTest SetUp function.
  • Add QNN include files in unittest CMake for QNN enums related to platform.
  • Skip all FP16 tests via macro for HTP architecture v68 on Windows.
  • Skip Auto EP tests via macro for HTP architecture v68 on Windows.

Description

This patch introduces a mechanism in QNN-specific unit tests to detect HTP architecture version and related platform details. Based on this information, tests that require unsupported features on certain hardware models can be dynamically disabled. This ensures better compatibility and stability across different SoC configurations.

Motivation and Context

Due to variations in device configuration and feature support across SoC models, some unit tests should only run on specific devices. This patch addresses that by querying platform information from the existing SDK library on Windows, enabling conditional test execution based on hardware capabilities.

- Directly load 'QnnHtp.dll' and query platforminfo with GetPlatformInfo
API in Gtest SetUp function
- Add QNN include files in unittest cmake for QNN Enums about platform
- Skip all FP16 Tests with Macro for HTP arch v68 on Windows
- Skip Auto EP Test with Macro for HTP arch v68 on Windows
@quic-boyuc
Copy link
Author

@microsoft-github-policy-service agree company="Qualcomm"

@quic-boyuc quic-boyuc changed the title Implement Platform-Aware UT Skipping Infra for QNN [QNN EP] Implement Platform-Aware UT Skipping Infra for QNN Dec 4, 2025
@quic-boyuc quic-boyuc marked this pull request as draft December 4, 2025 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant