diff options
Diffstat (limited to 'get_global_id_2d.c')
-rw-r--r-- | get_global_id_2d.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/get_global_id_2d.c b/get_global_id_2d.c index f256b71..50b7db2 100644 --- a/get_global_id_2d.c +++ b/get_global_id_2d.c @@ -4,6 +4,7 @@ #include <CL/cl.h> +#include "cl_simple.h" #include "util.h" #define GLOBAL_DIM_X 10 @@ -19,9 +20,9 @@ int main (int argc, char ** argv) size_t global_work_size[2] = {GLOBAL_DIM_X, GLOBAL_DIM_Y}; size_t local_work_size[2] = {5, 5}; - struct cltest_context context; + struct cl_simple_context context; - clTestSimpleInit(&context, "global_id2d"); + clSimpleSimpleInit(&context, "global_id2d"); /* XXX: Delete this to see a missing error path */ out_buffer = clCreateBuffer(context.cl_ctx, @@ -31,7 +32,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; } |