Skip to content

Commit 0fc8344

Browse files
committed
Fixing a bug with deinitialization.
1 parent 083c946 commit 0fc8344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel_tuner/utils/directives.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ def generate_directive_function(
560560
if data is not None:
561561
code += wrap_data(body + "\n", langs, data, preprocessor, user_dimensions)
562562
else:
563-
code += body
563+
code += body + "\n"
564564
if len(deinitialization) > 1:
565565
code += deinitialization + "\n"
566566
name = signature.split(" ")[1].split("(")[0]

0 commit comments

Comments
 (0)