Skip to content

Conversation

@qti-yuduo
Copy link
Contributor

Follow up for #25702.

Improve thread safety.

@HectorSVC HectorSVC requested a review from Copilot August 13, 2025 18:11
@HectorSVC HectorSVC added the ep:QNN issues related to QNN exeution provider label Aug 13, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves thread safety in the QNN execution provider by adding mutex protection to the unique name generator function. The change ensures that concurrent access to the static counter map is properly synchronized.

  • Adds mutex protection around static counter access
  • Refactors counter increment logic for better performance
  • Ensures thread-safe unique name generation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@HectorSVC HectorSVC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@HectorSVC
Copy link
Contributor

/azp run Linux QNN CI Pipeline,Win_TRT_Minimal_CUDA_Test_CI,Windows ARM64 QNN CI Pipeline,Windows GPU Doc Gen CI Pipeline,Windows x64 QNN CI Pipeline

@azure-pipelines
Copy link

Azure Pipelines successfully started running 5 pipeline(s).

@HectorSVC HectorSVC merged commit b8821e9 into microsoft:main Aug 14, 2025
88 of 92 checks passed
gedoensmax pushed a commit to gedoensmax/onnxruntime that referenced this pull request Sep 2, 2025
qti-yuduo pushed a commit to CodeLinaro/onnxruntime that referenced this pull request Sep 24, 2025
@qti-yuduo qti-yuduo deleted the dev/yuduo/lock-unique-name-generator branch September 24, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ep:QNN issues related to QNN exeution provider

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants