Skip to content

Commit

Permalink
Update PBS Memory Conversion
Browse files Browse the repository at this point in the history
Changed from 1E6 -> 1E8
  • Loading branch information
calvinp0 committed Apr 3, 2023
1 parent 6c7513e commit e236d42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arc/job/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ def set_cpu_and_mem(self):
self.submit_script_memory = math.ceil(total_submit_script_memory) # in MB
if cluster_software in ['pbs']:
# In PBS, "#PBS -l select=1:ncpus=8:mem=12000000" specifies the memory for all cores to be 12 MB.
self.submit_script_memory = math.ceil(total_submit_script_memory) * 1E6 # in Bytes
self.submit_script_memory = math.ceil(total_submit_script_memory) * 1E8 # in Bytes
elif cluster_software in ['slurm']:
# In Slurm, "#SBATCH --mem-per-cpu=2000" specifies the memory **per cpu/thread** to be 2000 MB.
self.submit_script_memory = math.ceil(total_submit_script_memory / self.cpu_cores) # in MB
Expand Down

0 comments on commit e236d42

Please sign in to comment.