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

Add an API to get current global free memory of XPU #549

Open
wants to merge 1 commit into
base: xpu-main
Choose a base branch
from

Conversation

notsyncing
Copy link

This PR fixes #522, using ZES_ENABLE_SYSMAN environment variable to make it work.
It also adds a torch.xpu.mem_get_info() method which behaves the same as torch.cuda.mem_get_info().

Sadly it only works under root. I have opened oneapi-src/level-zero#133 but got no response yet.

Any ideas?

@notsyncing
Copy link
Author

So by oneapi-src/level-zero#133, this requires root user or CAP_PERFMON to work. I'm not sure if Intel is going to add a non-privileged API to get this info. Any updates?

@notsyncing notsyncing changed the title Add an API to get current free memory of XPU Add an API to get current global free memory of XPU Apr 3, 2024
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.

None yet

1 participant