Skip to content

Commit

Permalink
test: add get-state to mocked cuda-checkpoint tool
Browse files Browse the repository at this point in the history
Signed-off-by: Radostin Stoyanov <[email protected]>
  • Loading branch information
rst0git authored and avagin committed Nov 13, 2024
1 parent d6e5e76 commit dd6b580
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/cuda-checkpoint/cuda-checkpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ int main(int argc, char *argv[])
int option_index = 0;
static struct option long_options[] = {
{ "pid", required_argument, 0, 'p' },
{ "get-state", no_argument, 0, 's' },
{ "get-restore-tid", no_argument, 0, 'g' },
{ "action", required_argument, 0, 'a' },
{ "timeout", required_argument, 0, 't' },
Expand All @@ -31,6 +32,9 @@ int main(int argc, char *argv[])
case 'a':
case 't':
break;
case 's':
printf("running\n");
break;
case 'h':
printf("--action - execute an action");
break;
Expand Down

0 comments on commit dd6b580

Please sign in to comment.