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 to use shared devices exclusively? #135

Open
lijinbio opened this issue Mar 20, 2023 · 0 comments
Open

How to use shared devices exclusively? #135

lijinbio opened this issue Mar 20, 2023 · 0 comments

Comments

@lijinbio
Copy link

Hi,

I have a list of GPU devices, e.g., [0, 1, 2], and I have many running tasks (e.g., 30 tasks), which require exclusive access to one device each. I intend to utilize "multiprocess" functions to execute all 30 tasks in parallel, while maintaining a queue of three GPU devices that are employed whenever a GPU device becomes available. Could you recommend any useful resources, such as tutorials or documents, to aid me in achieving this objective? Thank you.

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

1 participant