summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_kernel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_kernel.cpp b/tests/test_kernel.cpp
index bbb8d28..7046279 100644
--- a/tests/test_kernel.cpp
+++ b/tests/test_kernel.cpp
@@ -117,7 +117,7 @@ START_TEST (test_compiled_kernel)
"simple_function is not a kernel"
);
- kernels[0] = clCreateKernel(program, "kernel1", &result);
+ kernels[1] = clCreateKernel(program, "kernel1", &result);
fail_if(
result != CL_SUCCESS,
"unable to create a valid kernel"