Skip to content
This repository was archived by the owner on Apr 15, 2026. It is now read-only.

Commit d77288b

Browse files
committed
Print logs from cuda checkpoint
1 parent 32c2e81 commit d77288b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

internal/checkpointer/checkpointer.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ func (c *checkpointer) Restore(ctx context.Context) (*exec.Cmd, func(context.Con
190190
callback := func(con context.Context) error {
191191
// Toggle CUDA on for the restored process
192192
cmd := exec.CommandContext(con, cudaCheckpointPath, "--toggle", "--pid", strconv.Itoa(restoreCmd.Process.Pid))
193+
cmd.Stdout = os.Stdout
194+
cmd.Stderr = os.Stderr
193195
if err := cmd.Run(); err != nil {
194196
c.log.Errorw("failed to toggle CUDA on", "error", err)
195197
// If this command failed, we want to best effort try to kill the started process,

0 commit comments

Comments
 (0)