Skip to content
Snippets Groups Projects
Commit 30fc8321 authored by René Heß's avatar René Heß
Browse files

[Bugfix] No opcounters in function arguments...

parent 634a2f02
No related branches found
No related tags found
No related merge requests found
...@@ -207,6 +207,10 @@ def generate_standalone_code_google_benchmark(sf, filename): ...@@ -207,6 +207,10 @@ def generate_standalone_code_google_benchmark(sf, filename):
write_global_data(sf, filename) write_global_data(sf, filename)
with open(filename, "a") as f: with open(filename, "a") as f:
arguments = ', '.join(sf.interface.signature_args)
if len(arguments) > 0:
arguments = ', ' + arguments
arguments = 'const char* buffer0, const char* buffer 1' + arguments
f.write("void sumfact_kernel({})\n".format(arguments)) f.write("void sumfact_kernel({})\n".format(arguments))
for line in knl.member.lines[1:]: for line in knl.member.lines[1:]:
f.write("{}\n".format(line)) f.write("{}\n".format(line))
......
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