Skip to content

Commit

Permalink
Use env time to bypass built-in time instead of usr/bin
Browse files Browse the repository at this point in the history
  • Loading branch information
davidscn committed Sep 20, 2023
1 parent c61c4b6 commit ee75177
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/mapping-tester/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def createRunScript(outdir, path, case):
)

# Generate runner script
acmd = '/usr/bin/time -f %M -a -o memory-A.log precice-aste-run -v -a -p A --data "{}" --mesh {} || kill 0 &'.format(
acmd = 'env time -f %M -a -o memory-A.log precice-aste-run -v -a -p A --data "{}" --mesh {} || kill 0 &'.format(
case["function"], ameshLocation
)
if aranks > 1:
Expand All @@ -164,7 +164,7 @@ def createRunScript(outdir, path, case):
os.path.join(outdir, "meshes", bmesh, str(branks), bmesh), path
)
mapped_data_name = case["function"] + "(mapped)"
bcmd = '/usr/bin/time -f %M -a -o memory-B.log precice-aste-run -v -a -p B --data "{}" --mesh {} --output mapped || kill 0 &'.format(
bcmd = 'env time -f %M -a -o memory-B.log precice-aste-run -v -a -p B --data "{}" --mesh {} --output mapped || kill 0 &'.format(
mapped_data_name, bmeshLocation
)
if branks > 1:
Expand Down

0 comments on commit ee75177

Please sign in to comment.