Browse Source

starpu_opencl.h: CL_INVALID_GLOBAL_WORK_SIZE does not seem to be defined in all OpenCL versions, safer to treat it as un unknown error

Nathalie Furmento 15 years ago
parent
commit
eee58177e6
1 changed files with 1 additions and 4 deletions
  1. 1 4
      include/starpu_opencl.h

+ 1 - 4
include/starpu_opencl.h

@@ -166,14 +166,11 @@ extern "C" {
 		case CL_INVALID_MIP_LEVEL:				\
 			errormsg = "Invalid MIP level";                 \
 			break;                                          \
-		case CL_INVALID_GLOBAL_WORK_SIZE:			\
-			errormsg = "Invalid global work size";          \
-			break;                                          \
 		default:						\
 			errormsg = "unknown error";			\
 			break;			                        \
 		}                                                       \
-		printf("oops in %s ... <%s> \n", __func__, errormsg);	\
+		printf("oops in %s ... <%s> (%d) \n", __func__, errormsg, status); \
 		assert(0);	                                        \
 	} while (0)