Skip to content

Commit aabda67

Browse files
also updated the opencl example
1 parent 55e96f7 commit aabda67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/opencl/reduction.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def tune():
2525
args = [sum_x, x, n]
2626

2727
#tune the first kernel
28-
first_kernel = tune_kernel("sum_floats", kernel_string, problem_size,
28+
first_kernel, _ = tune_kernel("sum_floats", kernel_string, problem_size,
2929
args, tune_params, grid_div_x=[], verbose=True)
3030

3131
#tune the second kernel for different input sizes
@@ -40,7 +40,7 @@ def tune():
4040
#change the input size to nblocks
4141
args = [sum_x, x, numpy.int32(nblocks)]
4242
#tune the second kernel with n=nblocks
43-
result = tune_kernel("sum_floats", kernel_string, problem_size,
43+
result, _ = tune_kernel("sum_floats", kernel_string, problem_size,
4444
args, tune_params, grid_div_x=[], verbose=True)
4545
with open("reduce-kernel2-" + str(nblocks) + ".json", 'w') as fp:
4646
json.dump(result, fp)

0 commit comments

Comments
 (0)