Skip to content

Commit

Permalink
clean: small fixes and clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
MiloLurati committed Dec 20, 2024
1 parent 691da11 commit 929fe63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion kernel_tuner/backends/compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
cp = None

try:
from jip import hip
from hip import hip
except ImportError:
hip = None

Expand Down
4 changes: 3 additions & 1 deletion kernel_tuner/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,14 @@ def check_argument_list(kernel_name, kernel_string, args):

if correct and check_argument_type(str_dtype, kernel_argument):
continue

collected_errors[arguments_set].append(
f"Argument at position {i} of dtype: {str_dtype} does not match {kernel_argument}."
)

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

for errors in collected_errors:
Expand Down

0 comments on commit 929fe63

Please sign in to comment.