Skip to content

Commit

Permalink
IceBreaker job submission failed as no memory was requested
Browse files Browse the repository at this point in the history
  • Loading branch information
stephen-riggs committed Aug 23, 2024
1 parent a80eeaa commit 84a64ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/cryoemservices/util/slurm_submission.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,11 @@ def slurm_submission(
else:
slurm_json_job["tres_per_task"] = "gres/gpu:1"
slurm_json_job["memory_per_node"]["number"] = memory_request # type: ignore
elif api_version == "v0.0.38":
slurm_json_job["memory_per_cpu"] = 1000
else:
if api_version == "v0.0.38":
slurm_json_job["memory_per_cpu"] = 1000
else:
slurm_json_job["memory_per_node"]["number"] = 1000 * cpus # type: ignore

# Construct the job command and save the job script
if use_singularity:
Expand Down

0 comments on commit 84a64ce

Please sign in to comment.