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

checkpointing: make code aware of changed GPU device on resume #71

Open
mwibral opened this issue Jul 16, 2021 · 0 comments
Open

checkpointing: make code aware of changed GPU device on resume #71

mwibral opened this issue Jul 16, 2021 · 0 comments

Comments

@mwibral
Copy link
Collaborator

mwibral commented Jul 16, 2021

I just noticed that resuming from a checkpoint with the current code will assume tht it is running on the same GPU (number) as before. E.g. if the process started on GPU #0, after resume it will assume it is still running on GPU #0. However if you work on a cluster and your resume command goes through eh queuing system, then the process may well run on GPU#1,2,3 etc. after resume.

Fix: Provide the GPU number as an additional argument to the resume function.

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