Skip to content

Commit a950997

Browse files
committed
Rename two variables.
1 parent 73c8609 commit a950997

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

kernel_tuner/utils/directives.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44

55
# Function templates
6-
acc_cpp_template = """
6+
cpp_template: str = """
77
<!?PREPROCESSOR?!>
88
<!?USER_DEFINES?!>
99
#include <chrono>
@@ -15,7 +15,7 @@
1515
}
1616
"""
1717

18-
acc_f90_template = """
18+
f90_template: str = """
1919
<!?PREPROCESSOR?!>
2020
<!?USER_DEFINES?!>
2121
@@ -560,13 +560,13 @@ def generate_directive_function(
560560
"""Generate tunable function for one directive"""
561561

562562
if is_cxx(langs.language):
563-
code = acc_cpp_template
563+
code = cpp_template
564564
body = start_timing_cxx(body)
565565
if data is not None:
566566
body = wrap_data(body + "\n", langs, data, preprocessor, user_dimensions)
567567
body = end_timing_cxx(body)
568568
elif is_fortran(langs.language):
569-
code = acc_f90_template
569+
code = f90_template
570570
body = wrap_timing(body, langs.language)
571571
if data is not None:
572572
body = wrap_data(body + "\n", langs, data, preprocessor, user_dimensions)

0 commit comments

Comments
 (0)