Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addedd support for executing on slurm #30

Merged
merged 10 commits into from
Oct 16, 2023
Next Next commit
Minor changes to spacing
  • Loading branch information
JaimeCernuda committed Oct 14, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 508eda1cc761ee7a7b6933141e04c4c7b1e078bb
4 changes: 1 addition & 3 deletions jarvis_util/shell/slurm_exec.py
Original file line number Diff line number Diff line change
@@ -19,11 +19,9 @@ class SlurmExec(LocalExec):
def __init__(self, cmd, exec_info):
"""
Execute a command through sbatch

:param cmd: A command (string) to execute
:param exec_info: Information needed by sbatch
"""

self.cmd = cmd
self.job_name = exec_info.job_name
self.num_nodes = exec_info.num_noodes
@@ -35,7 +33,7 @@ def __init__(self, cmd, exec_info):
self.output = exec_info.pipe_stdout
self.error = exec_info.pipe_stderr
self.memory = exec_info.memory
self.gres = exec_info.gres
self.gres = exec_info.gres
self.exclusive = exec_info.exclusive

super().__init__(self.slurmcmd(),