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 018e28f..56394b8 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 (!clTestInitGpuDevice(&device_id)) {
+ if (!clSimpleInitGpuDevice(&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", clTestErrorString(error));
+ fprintf(stderr, "clCreateContext() failed: %s\n", clCheckErrorString(error));
return EXIT_FAILURE;
}
@@ -51,13 +51,13 @@ int main(int argc, char ** argv)
if (error != CL_SUCCESS) {
fprintf(stderr, "clCreateCommandQueue() failed: %s\n",
- clTestErrorString(error));
+ clCheckErrorString(error));
return EXIT_FAILURE;
}
fprintf(stderr, "clCreateCommandQueue() succeeded.\n");
- if (!clTestCreateKernel(context, device_id, &kernel, kernel_name)) {
+ if (!clSimpleCreateKernel(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", clTestErrorString(error));
+ fprintf(stderr, "clCreateBuffer() failed: %s\n", clCheckErrorString(error));
return EXIT_FAILURE;
}
fprintf(stderr, "clCreateBuffer() succeeded.\n");
- if ( !clTestKernelSetArg(kernel, 0, sizeof(cl_mem), &out_buffer)
- || !clTestKernelSetArg(kernel, 1, sizeof(int), &arg0)
- || !clTestKernelSetArg(kernel, 2, sizeof(int), &arg1)) {
+ if ( !clSimpleKernelSetArg(kernel, 0, sizeof(cl_mem), &out_buffer)
+ || !clSimpleKernelSetArg(kernel, 1, sizeof(int), &arg0)
+ || !clSimpleKernelSetArg(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",
- clTestErrorString(error));
+ clCheckErrorString(error));
return EXIT_FAILURE;
}
@@ -111,7 +111,7 @@ int main(int argc, char ** argv)
if (error != CL_SUCCESS) {
fprintf(stderr, "clEnqueueReadBuffer() failed: %s\n",
- clTestErrorString(error));
+ clCheckErrorString(error));
return EXIT_FAILURE;
}