Skip to content

Commit 929fe63

Browse files
committed
clean: small fixes and clean up
1 parent 691da11 commit 929fe63

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

kernel_tuner/backends/compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
cp = None
2828

2929
try:
30-
from jip import hip
30+
from hip import hip
3131
except ImportError:
3232
hip = None
3333

kernel_tuner/util.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,14 @@ def check_argument_list(kernel_name, kernel_string, args):
174174

175175
if correct and check_argument_type(str_dtype, kernel_argument):
176176
continue
177-
177+
178178
collected_errors[arguments_set].append(
179179
f"Argument at position {i} of dtype: {str_dtype} does not match {kernel_argument}."
180180
)
181181

182182
if not collected_errors[arguments_set]:
183+
# We assume that if there is a possible list of arguments that matches with the provided one
184+
# it is the right one
183185
return
184186

185187
for errors in collected_errors:

0 commit comments

Comments
 (0)