Skip to content
Snippets Groups Projects
Commit 24744208 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Correct opcounting benchmark generation

parent 24b02dc9
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,6 @@ def dtype_floatingpoint():
raise NotImplementedError("{}bit floating point type".format(bits))
@pt.memoize
def numpy_to_cpp_dtype(key):
_registry = {'float32': 'float',
'int32': 'int',
......
......@@ -88,7 +88,6 @@ def generate_standalone_code(sf, filename, logname):
set_option("opcounter", False)
from dune.perftool.loopy.target import type_floatingpoint
real = type_floatingpoint()
set_option("opcounter", opcounting)
f.write(" using RF = {};\n".format(real))
f.write(" using DF = {};\n".format(real))
......@@ -182,6 +181,7 @@ def generate_standalone_code(sf, filename, logname):
" std::cout << accum;\n",
"}\n",
])
set_option("opcounter", opcounting)
def autotune_realization(sf):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment