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

[XPU] Enable empty cache on XPU device #438

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

ys950902
Copy link

Support the flag empty-unused-memory-level ob XPU device, not only for CUDA device.

@ys950902
Copy link
Author

Hi @tjruwase, could you please take a look on this pr, we want to use the flag empty-unused-memory-level to reduce memory on XPU device.

@tjruwase
Copy link

@ys950902 and @polisettyvarma, thanks for this PR. In general, we want to replace all torch.cuda references with get_accelerator(), so these kinds of PRs are greatly appreciated.

@tjruwase tjruwase merged commit 8e9d973 into microsoft:main Aug 26, 2024
5 checks passed
@ys950902 ys950902 deleted the sy/empty_cache_on_XPU branch August 27, 2024 14:54
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