Skip to content

Commit c77e1be

Browse files
committed
changed tune_params dictionary type
1 parent 590e8da commit c77e1be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/hip/vector_add.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from kernel_tuner import tune_kernel
66
from kernel_tuner.file_utils import store_output_file, store_metadata_file
77
import logging
8+
from collections import OrderedDict
89

910
def tune():
1011

@@ -26,7 +27,7 @@ def tune():
2627

2728
args = [c, a, b, n]
2829

29-
tune_params = dict()
30+
tune_params = OrderedDict()
3031
tune_params["block_size_x"] = [128+64*i for i in range(15)]
3132

3233
results, env = tune_kernel("vector_add", kernel_string, size, args, tune_params, lang="HIP",

0 commit comments

Comments
 (0)