Skip to content

[NPU] Compute hash inside CommandQueueDesc and not in the graph#35104

Merged
pereanub merged 1 commit intoopenvinotoolkit:masterfrom
pereanub:update_command_queue_key_compute
Apr 2, 2026
Merged

[NPU] Compute hash inside CommandQueueDesc and not in the graph#35104
pereanub merged 1 commit intoopenvinotoolkit:masterfrom
pereanub:update_command_queue_key_compute

Conversation

@pereanub
Copy link
Copy Markdown
Contributor

@pereanub pereanub commented Apr 1, 2026

Details:

  • Compute hash inside CommandQueueDesc class and not in the graph

Tickets:

  • N/A

AI Assistance:

  • AI assistance used: no / yes
  • If yes, summarize how AI was used and what human validation was performed (build/tests/manual checks).

@pereanub pereanub requested a review from Copilot April 1, 2026 08:24
Copy link
Copy Markdown
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

Moves command-queue hashing responsibility into CommandQueueDesc (instead of computing it in Graph/DynamicGraph) and updates call sites to use the new encapsulated API.

Changes:

  • Added internal hashing utilities and automatic key recomputation to CommandQueueDesc (via getters/setters).
  • Simplified ZeroCmdQueueKeyHash to combine (context, device, desc.key) rather than re-hashing all desc fields.
  • Updated graphs, wrappers, and unit tests to construct/mutate CommandQueueDesc using the new interface.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/plugins/intel_npu/tests/functional/internal/utils/zero/zero_cmd_queue_pool_tests.hpp Updates tests to the new CommandQueueDesc constructor/setter API and new invariant enforcement.
src/plugins/intel_npu/src/utils/src/zero/zero_wrappers.cpp Switches CommandQueue creation logic to use CommandQueueDesc getters.
src/plugins/intel_npu/src/utils/include/intel_npu/utils/zero/zero_wrappers.hpp Implements hashing/key recomputation inside CommandQueueDesc and encapsulates its fields.
src/plugins/intel_npu/src/utils/include/intel_npu/utils/zero/zero_cmd_queue_pool.hpp Simplifies queue key hashing to reuse CommandQueueDesc::key.
src/plugins/intel_npu/src/compiler_adapter/src/graph.cpp Removes manual key recomputation; uses CommandQueueDesc setters.
src/plugins/intel_npu/src/compiler_adapter/src/dynamic_graph.cpp Removes manual key recomputation; uses CommandQueueDesc setters.

@github-actions github-actions bot added the category: NPU OpenVINO NPU plugin label Apr 1, 2026
@pereanub pereanub force-pushed the update_command_queue_key_compute branch from 23e30ba to 737db47 Compare April 1, 2026 11:40
@pereanub pereanub requested a review from Copilot April 1, 2026 11:41
Copy link
Copy Markdown
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

Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.

@pereanub pereanub force-pushed the update_command_queue_key_compute branch from 737db47 to 45f9ef9 Compare April 1, 2026 11:55
@pereanub pereanub requested a review from Copilot April 1, 2026 11:57
Copy link
Copy Markdown
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

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.

@pereanub pereanub marked this pull request as ready for review April 1, 2026 12:09
@pereanub pereanub requested review from a team as code owners April 1, 2026 12:09
@pereanub pereanub force-pushed the update_command_queue_key_compute branch from 45f9ef9 to cd67b03 Compare April 1, 2026 13:31
@pereanub pereanub requested a review from Copilot April 1, 2026 13:31
@pereanub pereanub force-pushed the update_command_queue_key_compute branch from cd67b03 to 26ba850 Compare April 1, 2026 13:35
Copy link
Copy Markdown
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

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

@PatrikStepan PatrikStepan requested a review from MirceaDan99 April 1, 2026 13:37
@pereanub pereanub force-pushed the update_command_queue_key_compute branch 2 times, most recently from c3193b7 to ad88d6b Compare April 1, 2026 13:58
Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
@pereanub pereanub force-pushed the update_command_queue_key_compute branch from ad88d6b to db195f9 Compare April 1, 2026 14:01
@pereanub pereanub added this pull request to the merge queue Apr 2, 2026
Merged via the queue into openvinotoolkit:master with commit aba783c Apr 2, 2026
179 checks passed
@pereanub pereanub deleted the update_command_queue_key_compute branch April 2, 2026 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category: NPU OpenVINO NPU plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants