Skip to content

Commit

Permalink
Added printout of important settings
Browse files Browse the repository at this point in the history
Only active in verbose mode. See issue #76
  • Loading branch information
pipitone committed Apr 12, 2016
1 parent ca24dff commit feda047
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions bin/qbatch
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,17 @@ if __name__ == "__main__":
script.close()
job_scripts.append(scriptfile)

if verbose:
print()
print(" Processors per job (--ppj): {}".format(ppj))
print("Commands run in parallel (-j): {}".format(ncores))
print(" Commands per job (-c): {}".format(chunk_size))
print(" Walltime (-w): {}".format(walltime or "unset"))
print(" Memory (--mem): {}".format(mem or "unset"))
print(" Memory variables (--memvars): {}".format(", ".join(memvars)))
print(" Other options (-o): {}".format(options or "unset"))
print()

# execute the job script(s)
for script in job_scripts:
os.chmod(script, os.stat(script).st_mode | stat.S_IXUSR)
Expand Down

1 comment on commit feda047

@gdevenyi
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this be modulated by local mode?

Please sign in to comment.