Skip to content
Snippets Groups Projects
Commit 95ae8055 authored by Jeremy Auguste's avatar Jeremy Auguste
Browse files

Maybe fixed issue with oarsub not working

parent c505010e
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ def main():
args = argparser()
command = ["oarsub"]
properties = "-p \""
command.append("-p")
properties = "\""
if args.gpu:
properties += "(gpu IS NOT NULL)"
else:
......@@ -58,15 +59,15 @@ def main():
properties += "\""
command.append(properties)
ressources = "-l core={},walltime={}:00:00".format(args.core, args.time)
command.append("-l")
ressources = "core={},walltime={}:00:00".format(args.core, args.time)
command.append(ressources)
if args.besteffort:
command.append("-t besteffort")
command.append("-t idempotent")
command.extend(["-t", "besteffort", "-t", "idempotent"])
if args.checkpoint is not None:
command.append("--checkpoint {}".format(args.checkpoint))
command.extend(["--checkpoint", args.checkpoint])
if args.interactive:
command.append('-I')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment