Commit ca6298da authored by Leonardo Solis's avatar Leonardo Solis

#59, corrected messages given by wrapcl calls when full debug mode

parent 810801f0
......@@ -77,7 +77,7 @@ int createCommandQueue(cl_context context,
#ifdef CMD_QUEUE_INFO_DISPLAY
err = getCommandQueueInfo(local_cmd_queue);
if (err!=CL_SUCCESS){
printf("Error: getCommandQueueInfo(): %d\n",err);
printf("Error: getCommandQueueInfo() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......
......@@ -61,7 +61,7 @@ int createContext(
#ifdef CONTEXT_INFO_DISPLAY
err = getContextInfo(local_context);
if (err!=CL_SUCCESS){
printf("Error: getContextInfo(): %d\n",err);
printf("Error: getContextInfo() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......
......@@ -91,7 +91,7 @@ int getDevices(cl_platform_id platform_id, cl_uint platformCount,
#ifdef DEVICE_ATTRIBUTES_DISPLAY
err = getDeviceAttributes(local_device_id, local_deviceCount);
if (err != CL_SUCCESS){
printf("Error: getDeviceAttributes(): %d\n",err);
printf("Error: getDeviceAttributes() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......
......@@ -88,7 +88,7 @@ int ImportSourceToProgram(const char* filename,
#ifdef PROGRAM_INFO_DISPLAY
err = getProgramInfo(*program);
if (err != CL_SUCCESS){
printf("Error: getProgramInfo() %d\n", err);
printf("Error: getProgramInfo() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......@@ -131,7 +131,7 @@ int ImportSourceToProgram(const char* filename,
#ifdef PROGRAM_BUILD_INFO_DISPLAY
err = getprogramBuildInfo(*program, device_id[0]);
if (err != CL_SUCCESS){
printf("Error: getprogramBuildInfo() %d\n", err);
printf("Error: getprogramBuildInfo() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......
......@@ -54,7 +54,7 @@ int getPlatforms(cl_platform_id** platform_id, cl_uint* platformCount){
#ifdef PLATFORM_ATTRIBUTES_DISPLAY
err = getPlatformAttributes (local_platform_id, local_platformCount);
if (err != CL_SUCCESS){
printf("Error: getPlatformAttributes(): %d\n",err);
printf("Error: getPlatformAttributes() \n");
fflush(stdout);
return EXIT_FAILURE;
}
......
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