Skip to content

add support for sysman 1.21 apis - #564

Open
joshuaranjan wants to merge 7 commits into
oneapi-src:masterfrom
joshuaranjan:add_new_pyzes_api_support
Open

joshuaranjan wants to merge 7 commits into
oneapi-src:masterfrom
joshuaranjan:add_new_pyzes_api_support

Conversation

@joshuaranjan

Copy link
Copy Markdown

Add support for

  1. Sysman API version
  2. Driver PCI properties
  3. GPU topology

@github-actions

github-actions Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Level Zero loader ABI check

last-release (v1.36.0): ✅ no ABI problems. Report

Creating compatibility report ...
Binary compatibility: 100%
Source compatibility: 100%
Total binary compatibility problems: 0, warnings: 0
Total source compatibility problems: 0, warnings: 0

master (master): ✅ no ABI problems. Report

Creating compatibility report ...
Binary compatibility: 100%
Source compatibility: 100%
Total binary compatibility problems: 0, warnings: 0
Total source compatibility problems: 0, warnings: 0

Workflow run

If an ABI change is intended, a reviewer with write access can accept it: leave an approval review on the PR head commit with the keyword abi-failure-approved in the review body. That re-runs the check.

@rwmcguir rwmcguir left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The SONAME major is derived from ZES_API_VERSION_CURRENT, but those are independent. The loader SOVERSION comes from the loader project major (source/CMakeLists.txt:46, from project() in CMakeLists.txt:16), and there is no contract that it stays in sync with the Sysman API major, i.e. per semver the loader could go to 2.0 and still support zes 1.x. Please use a separate constant for the loader major, e.g. _ZE_LOADER_SOVERSION = 1, and don't tie it to the API version.

Also, I am not seeing any automation for these values, pyzes is manually maintained while the spec import regenerates zes_api.h and , so they can silently go stale... Though uncertain since pyzes is allowed to lag since it is packaged and released separately. See the other comment for ideas.

The data structure that contains all the version, we could make common perhaps, or you can maintain it separately, but as in my other comment it will be the third copy. However, I would still keep your OWN copy of the ...VERSION_CURRENT... as that is the version your tied to for compatibility.. i.e. somehow you need to know that the bindings are written to match a specific API version, so it shouldn't auto-inherit that.. i.e. perhaps ZES_BINDINGS_VERSION_CURRENT or something. That should be the one manual update taht takes place, unless the entire generatkion of pyzes becomes automatically synced with Spec releases.

The concept would be Ensure your _ZE_LOADER_SOVERSION is matched against actual SOVERSION declared in Cmakefile during your CI run. Then additional if you don't automate the ZES_BINDINGS_VERSION_CURRENT and you want to leave it manual, then you could check that version against zes_api.h declared version as well. CI would kick you back an error letting you know it was out of sync or no longer compatible. This second check could tighten your compatibility down to the MINOR version i.e. [(zes_api.h MAJ.MIN) >= (pyzes MAJ.MIN)]

This test case would only run in your workflow for sysman bindings, it would not be part of the normal CI flow for loader only updates., Since we don't want to block L0 Loader updates with pyzes lagging.

Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
@joshuaranjan
joshuaranjan force-pushed the add_new_pyzes_api_support branch from ad1b2b2 to 18fc918 Compare November 23, 2026 13:22
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
Comment thread bindings/sysman/python/README.md Resolved
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>

@shubskmr shubskmr left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@joshuaranjan

Copy link
Copy Markdown
Author

The concept would be Ensure your _ZE_LOADER_SOVERSION is matched against actual SOVERSION declared in Cmakefile during your CI run. Then additional if you don't automate the ZES_BINDINGS_VERSION_CURRENT and you want to leave it manual, then you could check that version against zes_api.h declared version as well. CI would kick you back an error letting you know it was out of sync or no longer compatible. This second check could tighten your compatibility down to the MINOR version i.e. [(zes_api.h MAJ.MIN) >= (pyzes MAJ.MIN)]

This test case would only run in your workflow for sysman bindings, it would not be part of the normal CI flow for loader only updates., Since we don't want to block L0 Loader updates with pyzes lagging.

This makes sense.
Will have a specific PR to handle the version checks

@joshuaranjan joshuaranjan left a comment •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

LGTM.

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