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

How can I check the actual size of tensors allocated by Reactant.jl? #503

Open
x66ccff opened this issue Jan 9, 2025 · 3 comments
Open

Comments

@x66ccff
Copy link
Contributor

x66ccff commented Jan 9, 2025

I noticed that Reactant.jl occupies a portion of GPU memory right from the start. Is there a way to check the actual GPU memory size allocated to existing tensors? This would help me optimize memory usage during execution.

@mofeing
Copy link
Collaborator

mofeing commented Jan 9, 2025

mmm what does sizeof and summarysize return when you pass the ConcreteRArrays?

@x66ccff
Copy link
Contributor Author

x66ccff commented Jan 9, 2025

well, what I mean is, something like torch.cuda.memory_allocated() ?

@mofeing
Copy link
Collaborator

mofeing commented Jan 9, 2025

ahh, so not the memory used by some tensors but what part of the memory is allocated by Reactant right?

currently we don't have an API for that

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

2 participants