diff options
Diffstat (limited to 'get_global_id.c')
-rw-r--r-- | get_global_id.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/get_global_id.c b/get_global_id.c index 1b41809..9f347fc 100644 --- a/get_global_id.c +++ b/get_global_id.c @@ -9,7 +9,7 @@ int main(int argc, char ** argv) { cl_int error; - struct clu_context context; + struct cltest_context context; cl_mem out_buffer; @@ -17,7 +17,7 @@ int main(int argc, char ** argv) int out_data[10]; size_t global_work_size = 10; - cluSimpleInit(&context, "global_id"); + clTestSimpleInit(&context, "global_id"); out_buffer = clCreateBuffer(context.cl_ctx, CL_MEM_WRITE_ONLY, /* Flags */ @@ -26,13 +26,13 @@ int main(int argc, char ** argv) &error); /* error code */ if (error != CL_SUCCESS) { - fprintf(stderr, "clCreateBuffer() failed: %s\n", cluErrorString(error)); + fprintf(stderr, "clCreateBuffer() failed: %s\n", clTestErrorString(error)); return EXIT_FAILURE; } fprintf(stderr, "clCreateBuffer() succeeded.\n"); - if ( !cluKernelSetArg(context.kernel, 0, sizeof(cl_mem), &out_buffer)) { + if ( !clTestKernelSetArg(context.kernel, 0, sizeof(cl_mem), &out_buffer)) { return EXIT_FAILURE; } @@ -48,7 +48,7 @@ int main(int argc, char ** argv) if (error != CL_SUCCESS) { fprintf(stderr, "clEnqueueNDRangeKernel() failed: %s\n", - cluErrorString(error)); + clTestErrorString(error)); return EXIT_FAILURE; } @@ -67,7 +67,7 @@ int main(int argc, char ** argv) if (error != CL_SUCCESS) { fprintf(stderr, "clEnqueueReadBuffer() failed: %s\n", - cluErrorString(error)); + clTestErrorString(error)); return EXIT_FAILURE; } |