From cd1d01e30e3a2c0a2c24a8b5025758cd2b8d6a7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20He=C3=9F?= <rene.hess@iwr.uni-heidelberg.de> Date: Mon, 18 Feb 2019 14:46:17 +0100 Subject: [PATCH] Fix opcounter bug in google-benchmark autotuning --- python/dune/codegen/sumfact/autotune.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/python/dune/codegen/sumfact/autotune.py b/python/dune/codegen/sumfact/autotune.py index bbe00a78..a7a3c106 100644 --- a/python/dune/codegen/sumfact/autotune.py +++ b/python/dune/codegen/sumfact/autotune.py @@ -212,7 +212,7 @@ def generate_standalone_code_google_benchmark(sf, filename): f.write("\n\n") f.write("static void BM_sumfact_kernel(benchmark::State& state){\n") - write_setup_code(sf, filename, define_thetas=False) + opcounting = write_setup_code(sf, filename, define_thetas=False) additional_arguments = [i.split()[-1] for i in sf.interface.signature_args] additional_arguments = ', '.join(additional_arguments) @@ -227,6 +227,7 @@ def generate_standalone_code_google_benchmark(sf, filename): "\n", "BENCHMARK_MAIN();" ]) + set_option("opcounter", opcounting) def generate_standalone_code(sf, filename): -- GitLab