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

variable task.gpus like task.cpus. #5059

Open
alessiovignoli opened this issue Jun 12, 2024 · 1 comment
Open

variable task.gpus like task.cpus. #5059

alessiovignoli opened this issue Jun 12, 2024 · 1 comment

Comments

@alessiovignoli
Copy link

New feature

Helllo. I could not find in the documentation a variable that hold the number of GPUs used by the process,. The closest i could find is this -> task.accelerator.request from here.

It would be nice to have a variable called task.gpus like there is for the cpu task.cpus.

Usage scenario

At running time of the process it can be useful to know the number of CPUs,GPUs and memory requested. The first and last have their own task variable associated with an intuitive name.

This could be useful metrics to know for GPU intensive processes like ML applications.
A practical application could be in the case of ray.init() documentation, where an explicit hard limit can be set for resources.

@bentsherman
Copy link
Member

Does task.accelerator.request not work for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants