Skip to content

Commit

Permalink
Rename two variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
isazi committed Aug 20, 2024
1 parent 73c8609 commit a950997
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions kernel_tuner/utils/directives.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import numpy as np

# Function templates
acc_cpp_template = """
cpp_template: str = """
<!?PREPROCESSOR?!>
<!?USER_DEFINES?!>
#include <chrono>
Expand All @@ -15,7 +15,7 @@
}
"""

acc_f90_template = """
f90_template: str = """
<!?PREPROCESSOR?!>
<!?USER_DEFINES?!>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit a950997

Please sign in to comment.