diff --git a/kernel_tuner/utils/directives.py b/kernel_tuner/utils/directives.py index b9612abb..ded8c57f 100644 --- a/kernel_tuner/utils/directives.py +++ b/kernel_tuner/utils/directives.py @@ -3,7 +3,7 @@ import numpy as np # Function templates -acc_cpp_template = """ +cpp_template: str = """ #include @@ -15,7 +15,7 @@ } """ -acc_f90_template = """ +f90_template: str = """ @@ -560,13 +560,13 @@ def generate_directive_function( """Generate tunable function for one directive""" if is_cxx(langs.language): - code = acc_cpp_template + code = cpp_template body = start_timing_cxx(body) if data is not None: body = wrap_data(body + "\n", langs, data, preprocessor, user_dimensions) body = end_timing_cxx(body) elif is_fortran(langs.language): - code = acc_f90_template + code = f90_template body = wrap_timing(body, langs.language) if data is not None: body = wrap_data(body + "\n", langs, data, preprocessor, user_dimensions)