removed compiler loop as the used compiler can now be defined by the user via cmake defines
This commit is contained in:
parent
431f728793
commit
226871547f
|
@ -225,9 +225,8 @@ def measure_hibridon_perf(git_repos_url: str, code_version: str, tmp_dir: Path,
|
|||
if code_version:
|
||||
subprocess.run(['git', 'checkout', '%s' % (code_version)], cwd=src_dir, check=True)
|
||||
|
||||
for compiler in ['gfortran']: # , 'ifort']:
|
||||
# we need one build for each parallel run, otherwise running ctest on parallel would overwrite the same file, which causes the test to randomly fail depnding on race conditions
|
||||
build_dir = tmp_dir / compiler / 'worker<worker_id>'
|
||||
build_dir = tmp_dir / 'worker<worker_id>'
|
||||
print('creating build directory %s' % build_dir)
|
||||
create_build_dir = StarBencher(
|
||||
run_command=['mkdir', '-p', build_dir],
|
||||
|
@ -276,7 +275,7 @@ def measure_hibridon_perf(git_repos_url: str, code_version: str, tmp_dir: Path,
|
|||
stdout_filepath=build_dir / 'bench_stdout.txt',
|
||||
stderr_filepath=build_dir / 'bench_stderr.txt')
|
||||
mean_duration = bench.run()
|
||||
print('duration for compiler %s : %.3f s' % (compiler, mean_duration))
|
||||
print('duration : %.3f s' % (mean_duration))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue