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

cuda: Fix return value from CHECKPOINT_DEVICES #2540

Merged
merged 1 commit into from
Dec 10, 2024

Conversation

jesus-ramos
Copy link
Contributor

When cuda-checkpoint fails an operation it always returns the positive CUDA error code. In CHECKPOINT_DEVICES that was getting passed up as the failure code from one of the calls so if the operation failed we would write the failure to the log but not stop the dump since that checked for error values less than 0.

@avagin
Copy link
Member

avagin commented Dec 10, 2024

LGTM. You need to add sob in the commit message: https://github.com/checkpoint-restore/criu/pull/2540/checks?check_run_id=34217028525

…il properly

cuda-checkpoint returns the positive CUDA error code when it runs into an issue
and passing that along as the return value would cause errors to get ignored

Signed-off-by: Jesus Ramos <[email protected]>
@jesus-ramos
Copy link
Contributor Author

LGTM. You need to add sob in the commit message: https://github.com/checkpoint-restore/criu/pull/2540/checks?check_run_id=34217028525

Fixed.

@avagin avagin merged commit 6d1da61 into checkpoint-restore:criu-dev Dec 10, 2024
33 of 41 checks passed
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

Successfully merging this pull request may close these issues.

2 participants