Skip to content
Snippets Groups Projects
Verified Commit aeeb356a authored by Jayesh Badwaik's avatar Jayesh Badwaik
Browse files

+ make everything better

parent 90f55594
Branches
No related tags found
No related merge requests found
Pipeline #238072 failed
......@@ -123,7 +123,7 @@ patternset:
pattern:
- name: energy_start
_: 'energy_measure_start:$jube_pat_fp'
- name: energy_stop
- name: energy_end
_: 'energy_measure_stop:$jube_pat_fp'
......
......@@ -25,11 +25,13 @@ if __name__ == "__main__":
string = " " * random.randint(1, 10)
time.sleep(random.randint(10, 15))
if comm.Get_rank() == 0:
with open("energy.times", "w") as g:
g.write("energy_measure_start:" + str(time.time()) + "\n")
if comm.Get_rank() == 0:
print("Runtime={}{}".format(string, runtime))
if comm.Get_rank() == 0:
with open("energy.times", "a") as g:
g.write("energy_measure_stop:" + str(time.time()) + "\n")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment