Skip to content

Commit d77288b

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)