Skip to content

Commit

Permalink
Fix issue for running ATS on non-LC machines
Browse files Browse the repository at this point in the history
  • Loading branch information
ldowen committed Oct 29, 2024
1 parent 9f300b2 commit 02b432f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion scripts/gitlab/performance_analysis.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ def main():
if (os.path.isdir(args.atsOutput)):
atsFile = os.path.join(args.atsOutput, "atsr.py")
if (not os.path.exists(atsFile)):
raise Exception(f"File {atsFile} does not exist")
raise Exception("ATS file not found")
# Run atsr.py and put values into globals
exec(compile(open(atsFile).read(), atsFile, 'exec'), globals())
state = globals()["state"]


if __name__=="__main__":
main()
4 changes: 2 additions & 2 deletions scripts/spheral_ats.py.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ spheral_exe = os.path.join(install_prefix, "spheral")
def report_results(output_dir):
ats_py = os.path.join(output_dir, "atsr.py")
if (not os.path.exists(ats_py)):
raise Exception(f"{ats_py} does not exists")
raise Exception("ats.py does not exists. Tests likely did not run.")
exec(compile(open(ats_py).read(), ats_py, 'exec'), globals())
state = globals()["state"]
failed_tests = [t for t in state['testlist'] if t['status'] in [FAILED,TIMEDOUT] ]
Expand Down Expand Up @@ -135,7 +135,7 @@ def main():
launch_cmd = f"salloc --exclusive -N {numNodes} -t {timeLimit} "
if (ciRun):
launch_cmd += "-p pdebug "
elif 'blueos_3_ppc64le_ib_p9' in sys_type:
elif sys_type and 'blueos_3_ppc64le_ib_p9' in sys_type:
blueOS = True
numNodes = numNodes if numNodes else 1
timeLimit = timeLimit if timeLimit else 60
Expand Down

0 comments on commit 02b432f

Please sign in to comment.