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

Track cudaHostAlloc and hipHostMalloc #87

Open
fpruvost opened this issue Feb 15, 2024 · 1 comment
Open

Track cudaHostAlloc and hipHostMalloc #87

fpruvost opened this issue Feb 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@fpruvost
Copy link

Hi,
In our application our data blocks allocated on the main RAM (host) are pinned when using GPUs, and we use the functions cudaHostAlloc/cudaFreeHost (nvidia gpus) or hipHostMalloc/hipHostFree (amd gpus).
Can malt track these functions ?
Thanks

@svalat svalat added the enhancement New feature or request label Feb 15, 2024
@svalat
Copy link
Member

svalat commented Feb 15, 2024

That's an interesting idea to add thanks.

For now, not possible in the current version.

A way could be to consider them as custom allocator playing with --wrap of malt but in practice they don't have the same signature (extra args).

I would say if we want to add this support we can :

  1. Capture & track them and also add a counter specific + charts to track GPU memory
  2. Track pinned memory

For point 2), that's far more work and I think it is not really trivial.

  1. should be in principle quite easy to add even need to think a bit the right way to expose in the GUI to be usefull.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants