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

about the "get_free_gpus()" function #35

Open
Wang-Zeyu opened this issue Dec 21, 2021 · 1 comment
Open

about the "get_free_gpus()" function #35

Wang-Zeyu opened this issue Dec 21, 2021 · 1 comment

Comments

@Wang-Zeyu
Copy link

Wang-Zeyu commented Dec 21, 2021

del gpus[busid]

when there are 2 process running on the same GPU IDs,the "del gpus[busid]" will raise key error.

@DiLiangWU
Copy link

If there are 2 process running on the same GPU IDs, You should change the code here. First determine whether the key exists in gpus now. If exist, then delete,otherwise do nothing. This way, the second attempt to delete won't raise key error.

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