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

Is it possible to get a GPU memory high watermark? #448

Open
balos1 opened this issue Nov 2, 2022 · 3 comments
Open

Is it possible to get a GPU memory high watermark? #448

balos1 opened this issue Nov 2, 2022 · 3 comments

Comments

@balos1
Copy link
Member

balos1 commented Nov 2, 2022

... for CUDA and/or ROCm.

@daboehme
Copy link
Member

daboehme commented Nov 2, 2022

Currently, no. I'll look into it and see if we can record this. We have support for recording HWMs from Umpire if you're using that.

@jrmadsen
Copy link
Contributor

jrmadsen commented Nov 3, 2022

@daboehme I think you'd have to use the C APIs of nvidia-smi/rocm-smi and poll the current memory usage (potentially in a background thread), keeping track of the max. I am not aware of of any API analogous to getrusage that would provide a straightforward way to get this.

@daboehme
Copy link
Member

daboehme commented Nov 3, 2022

@daboehme I think you'd have to use the C APIs of nvidia-smi/rocm-smi and poll the current memory usage (potentially in a background thread), keeping track of the max. I am not aware of of any API analogous to getrusage that would provide a straightforward way to get this.

Yeah, that sounds like the way to go. Thanks!

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

No branches or pull requests

3 participants