diff options
Diffstat (limited to 'loop.c')
-rw-r--r-- | loop.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -4,13 +4,14 @@ #include <CL/cl.h> +#include "cl_simple.h" #include "util.h" int main (int argc, char ** argv) { int i,j; - struct cltest_context context; + struct cl_simple_context context; cl_int error; @@ -18,7 +19,7 @@ int main (int argc, char ** argv) int out_data[100]; size_t global_work_size = 10; - if (!clTestSimpleInit(&context, "loop")) { + if (!clSimpleSimpleInit(&context, "loop")) { return EXIT_FAILURE; } @@ -29,7 +30,7 @@ int main (int argc, char ** argv) assert(error == CL_SUCCESS); - if (!clTestKernelSetArg(context.kernel, 0, sizeof(cl_mem), &out_buffer)) { + if (!clSimpleKernelSetArg(context.kernel, 0, sizeof(cl_mem), &out_buffer)) { return EXIT_FAILURE; } |