Skip to content

feature: Add pyzes support for driver APIs - #523

Open
aviralni wants to merge 5 commits into
oneapi-src:masterfrom
aviralni:pyzes_driver
Open

aviralni wants to merge 5 commits into
oneapi-src:masterfrom
aviralni:pyzes_driver

Conversation

@aviralni

@aviralni aviralni commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor
  1. zesDriverGetProperties
  2. zesDriverGetExtensionProperties
  3. zesDriverGetExtensionFunctionAddress
  4. zesDriverEventListenEx
  5. zesDriverEventRegisterExt
  6. zesDriverEventListenExt

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

Driver-scoped black-box tests must run independently of device enumeration.

Get a fresh assessment by requesting another Copilot review.

Review effort: Balanced
Findings: 1 Medium severity

Open (1)
What changed in this PR

Adds Python bindings, tests, examples, and documentation for six Sysman driver APIs.

Changes:

  • Adds driver structures, event flags, and API wrappers.
  • Adds unit and black-box test coverage.
  • Documents supported driver APIs.
File Review
bindings/​sysman/​python/​test/​unit_tests/​test_driver.py Adds unit tests for the new wrappers.
bindings/​sysman/​python/​source/​pyzes.py Adds driver API bindings and types.
bindings/​sysman/​python/​source/​examples/​pyzes_black_box_test.py Driver tests at lines 1536 and 1638 are incorrectly skipped when device enumeration fails or returns no devices.
bindings/​sysman/​python/​README.md Documents version 0.1.3 APIs while package and release metadata remain at 0.1.2.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread bindings/sysman/python/source/examples/pyzes_black_box_test.py Outdated
@joshuaranjan

Copy link
Copy Markdown

@aviralni Please resolve the comments

@shubskmr could you please check

Add python bindings, unit tests, black box test coverage and README
entries for:
1. zesDriverGetProperties
2. zesDriverGetExtensionProperties
3. zesDriverGetExtensionFunctionAddress
4. zesDriverEventListenEx
5. zesDriverEventRegisterExt
6. zesDriverEventListenExt

Related-To: SYSM-433

Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
…listen timeout to 10000 ms in pyzes black box test
Driver properties, extension and event queries do not need a device,
but both -a and -d skipped them when device enumeration failed or
returned no devices. Run the driver scoped test before the device check.

Related-To: SYSM-433
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
@aviralni

aviralni commented Oct 8, 2026

Copy link
Copy Markdown
Contributor Author

@aviralni Please resolve the comments

@shubskmr could you please check

Done.
@shubskmr please check.

…ox test

The driver test queried zesDriverGetExtensionFunctionAddress for
zesIntelDriverGetPropertiesExp. NEO removed that function when the driver
properties moved to the standard zesDriverGetProperties, so the lookup now
fails with ZE_RESULT_ERROR_INVALID_ARGUMENT. Query
zesIntelDriverRescanDevicesExp instead, as zello_sysman does.

Related-To: SYSM-433
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>
…ck box test

zello_sysman prints the driver properties with -D/--driverproperties and
listens for events with -E/--event, while pyzes did both under -d, which
is the diagnostics test in zello_sysman. Run the properties, extension and
extension function tests with -D and the event registration and listen
tests with -E; --listen-timeout now belongs to -E.

Related-To: SYSM-433
Signed-off-by: Aviral Nigam <aviral.nigam@intel.com>

This branch has not been deployed

No deployments
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.

3 participants