Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

separate APIs for initializing and enumerating sysman #34

Merged
merged 4 commits into from
Nov 15, 2022

Conversation

bashbaug
Copy link
Contributor

@bashbaug bashbaug commented Nov 2, 2022

This PR has several changes related to #7:

  • It adds a zesInit function to initialize sysman separate from the zeInit function. It does not require an environment variable.
  • It adds separate zesDriverGet and zesDeviceGet functions to enumerate sysman drivers and devices, rather than enumerating devices via core APIs and casting to sysman device handles.
  • After enumerating device handles, sysman can be used exactly as it was before.

I added the APIs and I also updated the programming guide to describe how they are used.

Things we still need to decide (could be fixed in this PR or separately):

  • Do we want query functions to determine if a core driver or device handle can be converted to a sysman driver or device handle, e.g. zesDriverSupported, or are the separate functions to enumerate sysman drivers and devices sufficient?
  • Likewise, do we want a function to convert between a core driver or device handle to a sysman driver or device handle?

scripts/sysman/driver.yml Show resolved Hide resolved
scripts/sysman/driver.yml Show resolved Hide resolved
scripts/sysman/driver.yml Show resolved Hide resolved
scripts/sysman/driver.yml Show resolved Hide resolved
scripts/sysman/driver.yml Show resolved Hide resolved
scripts/sysman/PROG.rst Show resolved Hide resolved
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