Skip to content

Commit 38739e6

Browse files
committed
Remove --interact
1 parent 718a322 commit 38739e6

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,11 @@ Show the status of GPUs on all servers.
2525
### `$ submit jobfile jobname`
2626

2727
- `jobfile` : File to be run
28-
- `jobname` : Job name, and also the folder name of the job
28+
- `jobname` : Job name, and also the folder name of the job. If not provided, a random number will be used.
2929

3030
Options:
3131

3232
- `-h`, `--help` : Show this help message and exit
33-
- `-i`, `--interact` : Submit as an interactive job
3433
- `-s SERVER`, `--server SERVER` : Server host name
3534
- `--gpuid GPUID` : GPU ID to be used; -1 to use CPU only
3635

sumsjob/submit.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,13 @@ def main():
141141
parser = argparse.ArgumentParser(description="Submit a job to (GPU) servers.")
142142
parser.add_argument("jobfile", help="File to be run")
143143
parser.add_argument(
144-
"jobname", nargs="?", help="Job name, and also the folder name of the job"
145-
)
146-
parser.add_argument(
147-
"-i", "--interact", action="store_true", help="Submit as an interactive job"
144+
"jobname",
145+
nargs="?",
146+
help="Job name, and also the folder name of the job. If not provided, a random number will be used.",
148147
)
148+
# parser.add_argument(
149+
# "-i", "--interact", action="store_true", help="Submit as an interactive job"
150+
# )
149151
parser.add_argument("-s", "--server", help="Server host name")
150152
parser.add_argument("--gpuid", help="GPU ID to be used; -1 to use CPU only")
151153
args = parser.parse_args()
@@ -155,7 +157,7 @@ def main():
155157
jobname=args.jobname,
156158
machine=args.server,
157159
gpuid=args.gpuid,
158-
interact=args.interact,
160+
interact=True, # args.interact,
159161
verbose=2,
160162
)
161163

0 commit comments

Comments
 (0)