Skip to content

Commit a430331

Browse files
add support for char and short in C backend
1 parent a09c889 commit a430331

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kernel_tuner/c.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ def ready_argument_list(self, arguments):
6969
"""
7070
ctype_args = []
7171

72-
dtype_map = {"int32": C.c_int32,
72+
dtype_map = {"int8": C.c_char,
73+
"int16": C.c_short,
74+
"int32": C.c_int32,
7375
"int64": C.c_int64,
7476
"float32": C.c_float,
7577
"float64": C.c_double}

0 commit comments

Comments
 (0)