Skip to content

Commit

Permalink
BUG compute number of LSF slots properly
Browse files Browse the repository at this point in the history
  • Loading branch information
beckermr authored Feb 26, 2023
1 parent f1beec0 commit effe5aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mattspy/lsf_yield.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import atexit
import logging
import time
import math
from concurrent.futures import ThreadPoolExecutor, as_completed

from .yield_result import ParallelResult, ParallelSubmissionError
Expand Down Expand Up @@ -97,7 +98,7 @@ def _submit_lsf_job(*, subid, job_data, mem, execid, timelimit, execdir):
# compute mem requirement
if mem > 4:
mem_str = " span[hosts=1]"
n = 2
n = math.ceil(mem/4)
else:
n = 1
mem_str = ""
Expand Down

0 comments on commit effe5aa

Please sign in to comment.