Commit 810801f0 authored by Leonardo Solis's avatar Leonardo Solis

#56, corrected stdout wrapcl

parent bfe56e21
......@@ -44,7 +44,7 @@ int createKernel( cl_device_id* device_id,
#ifdef KERNEL_INFO_DISPLAY
err = getKernelInfo(*kernel);
if (err != CL_SUCCESS){
printf("Error: getKernelInfo() %d\n", kernel_name, err);
printf("Error: getKernelInfo() %s\n", kernel_name);
fflush(stdout);
return EXIT_FAILURE;
}
......@@ -53,7 +53,7 @@ int createKernel( cl_device_id* device_id,
#ifdef KERNEL_WORK_GROUP_INFO_DISPLAY
err = getKernelWorkGroupInfo(*kernel, device_id[0]);
if (err != CL_SUCCESS){
printf("Error: getKernelWorkGroupInfo() %d\n", kernel_name, err);
printf("Error: getKernelWorkGroupInfo() %s\n", kernel_name);
fflush(stdout);
return EXIT_FAILURE;
}
......@@ -78,6 +78,7 @@ int getKernelInfo(cl_kernel kernel){
// Query Function name
printf("\n-----------------------------------------------------------------------\n");
err = clGetKernelInfo(kernel,CL_KERNEL_FUNCTION_NAME,0,NULL,&sizeParam);
if (err != CL_SUCCESS){
printf("Error: clGetKernelInfo() %d\n",err);
fflush(stdout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment