Skip to content

Commit

Permalink
Another attempt to fix job launch ats stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
ldowen committed Oct 28, 2024
1 parent a8f85c4 commit 9f300b2
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions scripts/spheral_ats.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,12 @@ def run_and_report(run_command, ci_output, num_runs):
# Main routine
#---------------------------------------------------------------------------
def main():
temp_uname = os.uname()
hostname = temp_uname[1]
sys_type = os.getenv("SYS_TYPE")
# Use ATS to for some machine specific functions
if "MACHINE_TYPE" not in os.environ:
ats_utils.set_machine_type_based_on_sys_type()
hostname = None
if "HOSTNAME" in os.environ:
hostname = os.environ["HOSTNAME"]
#---------------------------------------------------------------------------
# Setup argument parser
#---------------------------------------------------------------------------
Expand Down Expand Up @@ -126,25 +126,24 @@ def main():
launch_cmd = ""
blueOS = False

if hostname:
mac_args = []
if "rzgenie" in hostname or "ruby" in hostname:
numNodes = numNodes if numNodes else 2
timeLimit = timeLimit if timeLimit else 120
time_limit = 120
mac_args = [f"--numNodes {numNodes}"]
launch_cmd = f"salloc --exclusive -N {numNodes} -t {timeLimit} "
if (ciRun):
launch_cmd += "-p pdebug "
elif "lassen" in hostname or "rzansel" in hostname:
blueOS = True
numNodes = numNodes if numNodes else 1
timeLimit = timeLimit if timeLimit else 60
mac_args = ["--smpi_off", f"--numNodes {numNodes}"]
launch_cmd = f"bsub -nnodes {numNodes} -Is -XF -W {timeLimit} -core_isolation 2 "
if (ciRun):
launch_cmd += "-q pdebug "
ats_args.extend(mac_args)
mac_args = []
if hostname and ("rzgenie" in hostname or "ruby" in hostname):
numNodes = numNodes if numNodes else 2
timeLimit = timeLimit if timeLimit else 120
time_limit = 120
mac_args = [f"--numNodes {numNodes}"]
launch_cmd = f"salloc --exclusive -N {numNodes} -t {timeLimit} "
if (ciRun):
launch_cmd += "-p pdebug "
elif 'blueos_3_ppc64le_ib_p9' in sys_type:
blueOS = True
numNodes = numNodes if numNodes else 1
timeLimit = timeLimit if timeLimit else 60
mac_args = ["--smpi_off", f"--numNodes {numNodes}"]
launch_cmd = f"bsub -nnodes {numNodes} -Is -XF -W {timeLimit} -core_isolation 2 "
if (ciRun):
launch_cmd += "-q pdebug "
ats_args.extend(mac_args)

#---------------------------------------------------------------------------
# Launch ATS
Expand Down

0 comments on commit 9f300b2

Please sign in to comment.