summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2012-03-02 16:09:50 -0500
committerTom Stellard <thomas.stellard@amd.com>2012-03-02 16:09:50 -0500
commitc3d0faace8d249bb17f1bb02b9539fbbe5effd90 (patch)
tree7cb91500df8eb07fcc8157c5ad8e0479e9e93b7c
parentb738cef8dc587e75bb936165636412d12bfae564 (diff)
Kernel name must match the name of the kernel function
-rw-r--r--hello_world.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hello_world.c b/hello_world.c
index 9853897..7e42370 100644
--- a/hello_world.c
+++ b/hello_world.c
@@ -132,7 +132,7 @@ int main(int argc, char ** argv)
fprintf(stderr, "clBuildProgram() suceeded.\n");
- kernel = clCreateKernel(program, "hello world", &error);
+ kernel = clCreateKernel(program, "pi", &error);
if (error != CL_SUCCESS) {
fprintf(stderr, "clCreateKernel() failed: %s\n", cluErrorString(error));