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

hwloc_levelzero_get_{sysman_,}device_osdev() return the "root" hwloc device #698

Open
bgoglin opened this issue Dec 4, 2024 · 0 comments

Comments

@bgoglin
Copy link
Contributor

bgoglin commented Dec 4, 2024

L0 devices may have subdevices (eg Xe tiles on PVC). Our helpers currently only return the "top-level" "root" hwloc device even when called on a subdevice.

For the core API, it's easy to fix by calling zeDeviceGetProperties() and using prop.subdeviceId if ze_device_property_flags_t & ZE_DEVICE_PROPERTY_FLAG_SUBDEVICE. For the sysman API, I don't see any way to fix this.

bgoglin added a commit to bgoglin/hwloc that referenced this issue Dec 4, 2024
Refs open-mpi#698

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
bgoglin added a commit that referenced this issue Dec 4, 2024
Refs #698

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit cb3a260)
bgoglin added a commit that referenced this issue Dec 4, 2024
Refs #698

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
(cherry picked from commit cb3a260)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant