summaryrefslogtreecommitdiff
path: root/math-int.c
diff options
context:
space:
mode:
Diffstat (limited to 'math-int.c')
-rw-r--r--math-int.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/math-int.c b/math-int.c
index e02439e..018e28f 100644
--- a/math-int.c
+++ b/math-int.c
@@ -26,7 +26,7 @@ int main(int argc, char ** argv)
arg1 = atoi(argv[3]);
expected = atoi(argv[4]);
- if (!cluInitGpuDevice(&device_id)) {
+ if (!clTestInitGpuDevice(&device_id)) {
return EXIT_FAILURE;
}
@@ -38,7 +38,7 @@ int main(int argc, char ** argv)
&error); /* Error code */
if (error != CL_SUCCESS) {
- fprintf(stderr, "clCreateContext() failed: %s\n", cluErrorString(error));
+ fprintf(stderr, "clCreateContext() failed: %s\n", clTestErrorString(error));
return EXIT_FAILURE;
}
@@ -51,13 +51,13 @@ int main(int argc, char ** argv)
if (error != CL_SUCCESS) {
fprintf(stderr, "clCreateCommandQueue() failed: %s\n",
- cluErrorString(error));
+ clTestErrorString(error));
return EXIT_FAILURE;
}
fprintf(stderr, "clCreateCommandQueue() succeeded.\n");
- if (!cluCreateKernel(context, device_id, &kernel, kernel_name)) {
+ if (!clTestCreateKernel(context, device_id, &kernel, kernel_name)) {
return EXIT_FAILURE;
}
@@ -68,15 +68,15 @@ 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(kernel, 0, sizeof(cl_mem), &out_buffer)
- || !cluKernelSetArg(kernel, 1, sizeof(int), &arg0)
- || !cluKernelSetArg(kernel, 2, sizeof(int), &arg1)) {
+ if ( !clTestKernelSetArg(kernel, 0, sizeof(cl_mem), &out_buffer)
+ || !clTestKernelSetArg(kernel, 1, sizeof(int), &arg0)
+ || !clTestKernelSetArg(kernel, 2, sizeof(int), &arg1)) {
return EXIT_FAILURE;
}
@@ -92,7 +92,7 @@ int main(int argc, char ** argv)
if (error != CL_SUCCESS) {
fprintf(stderr, "clEnqueueNDRangeKernel() failed: %s\n",
- cluErrorString(error));
+ clTestErrorString(error));
return EXIT_FAILURE;
}
@@ -111,7 +111,7 @@ int main(int argc, char ** argv)
if (error != CL_SUCCESS) {
fprintf(stderr, "clEnqueueReadBuffer() failed: %s\n",
- cluErrorString(error));
+ clTestErrorString(error));
return EXIT_FAILURE;
}