Repository navigation
add support for sysman 1.21 apis - #564
joshuaranjan wants to merge 7 commits into
Conversation
Level Zero loader ABI checklast-release ( master ( 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 |
There was a problem hiding this comment.
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>
ad1b2b2 to
18fc918
Compare
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>
Signed-off-by: Ranjan, Joshua Santhosh <joshua.santosh.ranjan@intel.com>
This makes sense. |
Add support for