Skip to content

[projmgr] Add list npus to filter devices with NPUs#2449

Merged
jthuangarm merged 8 commits into
Open-CMSIS-Pack:mainfrom
jthuangarm:list-npus
Apr 22, 2026
Merged

[projmgr] Add list npus to filter devices with NPUs#2449
jthuangarm merged 8 commits into
Open-CMSIS-Pack:mainfrom
jthuangarm:list-npus

Conversation

@jthuangarm

@jthuangarm jthuangarm commented Apr 21, 2026

Copy link
Copy Markdown
Contributor

Fixes

Changes

  • Introduce new list npus command to the projmgr tool, allowing users to list available NPUs along with associated device/processor information.
  • Refactor and simplify the implementation of the List and RunList commands, making them more maintainable and extensible.
  • Update the --filter option to accept multiple filter words, as RteUtils::ApplyFilter used in multiple places supports applying more than one filter.

Here is an example output:

>csolution list npus -f ethos-u85 -f "AE8 LS0" -v
Ethos-U85 (256MACs):
  Alif Semiconductor::AE822FA0E5597LS0, [M55_HE] Cortex-M55
    VELA config: C:/.../packs/AlifSemiconductor/Ensemble/2.2.0-dev/Device/core/common/scripts/vela/ensemble_vela.ini
  Alif Semiconductor::AE822FA0E5597LS0, [M55_HP] Cortex-M55
    VELA config: C:/.../packs/AlifSemiconductor/Ensemble/2.2.0-dev/Device/core/common/scripts/vela/ensemble_vela.ini

Checklist

  • 🤖 This change is covered by unit tests (if applicable).
  • 🤹 Manual testing has been performed (if necessary).
  • 🛡️ Security impacts have been considered (if relevant).
  • 📖 Documentation updates are complete (if required).
  • 🧠 Third-party dependencies and TPIP updated (if required).

@github-actions

github-actions Bot commented Apr 21, 2026

Copy link
Copy Markdown

Test Results

    3 files     21 suites   16m 50s ⏱️
  457 tests   457 ✅ 0 💤 0 ❌
1 371 runs  1 371 ✅ 0 💤 0 ❌

Results for commit d043831.

♻️ This comment has been updated with latest results.

@jthuangarm jthuangarm marked this pull request as ready for review April 22, 2026 09:10
@jthuangarm jthuangarm requested a review from brondani April 22, 2026 09:10
Comment thread tools/projmgr/src/ProjMgrWorker.cpp Outdated
Comment thread tools/projmgr/test/src/ProjMgrUnitTests.cpp Outdated
Comment thread tools/projmgr/src/ProjMgr.cpp
@jthuangarm jthuangarm requested a review from brondani April 22, 2026 11:46

@brondani brondani left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@jthuangarm jthuangarm merged commit 5a1dce6 into Open-CMSIS-Pack:main Apr 22, 2026
42 checks passed
@jthuangarm jthuangarm deleted the list-npus branch April 22, 2026 12:04
@codecov

codecov Bot commented Apr 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.91608% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.60%. Comparing base (61f4e9a) to head (d043831).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
tools/projmgr/src/ProjMgrWorker.cpp 76.92% 9 Missing and 12 partials ⚠️
tools/projmgr/src/ProjMgr.cpp 96.15% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2449      +/-   ##
==========================================
+ Coverage   65.46%   65.60%   +0.14%     
==========================================
  Files         145      145              
  Lines       28038    28048      +10     
  Branches    16027    16036       +9     
==========================================
+ Hits        18354    18400      +46     
+ Misses       7404     7381      -23     
+ Partials     2280     2267      -13     
Flag Coverage Δ
projmgr-cov 88.25% <83.91%> (+0.39%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
tools/projmgr/include/ProjMgr.h 100.00% <ø> (ø)
tools/projmgr/include/ProjMgrWorker.h 84.37% <ø> (ø)
tools/projmgr/src/ProjMgr.cpp 87.31% <96.15%> (+5.80%) ⬆️
tools/projmgr/src/ProjMgrWorker.cpp 87.95% <76.92%> (-0.28%) ⬇️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants