From 8434766a4feb6f414c94bf42bae0bb9ffa446324 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcel=20L=C3=BCtke=20Dreimann?= Date: Thu, 18 Sep 2025 09:06:54 +0200 Subject: [PATCH] option to disable ocl prints --- repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc | 184 +++++++++++++++++++++ 1 file changed, 184 insertions(+) diff --git a/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc b/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc index 47a49739d9..aad28b018f 100644 --- a/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc +++ b/repos/hello_gpgpu/src/hello_gpgpu/CL/cl.cc @@ -4,6 +4,8 @@ #include #pragma GCC diagnostic ignored "-Wunused-parameter" +// #define CL_VERBOSE + #ifdef __cplusplus extern "C" { #endif @@ -165,21 +167,27 @@ clCreateSubDevices(cl_device_id in_device, cl_device_id * out_devices, cl_uint * num_devices_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } CL_API_ENTRY cl_int CL_API_CALL clRetainDevice(cl_device_id device) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } CL_API_ENTRY cl_int CL_API_CALL clReleaseDevice(cl_device_id device) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -192,7 +200,9 @@ clSetDefaultDeviceCommandQueue(cl_context context, cl_device_id device, cl_command_queue command_queue) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -201,7 +211,9 @@ clGetDeviceAndHostTimer(cl_device_id device, cl_ulong* device_timestamp, cl_ulong* host_timestamp) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -209,7 +221,9 @@ CL_API_ENTRY cl_int CL_API_CALL clGetHostTimer(cl_device_id device, cl_ulong * host_timestamp) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -247,14 +261,18 @@ clCreateContextFromType(const cl_context_properties * properties, void * user_data, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } CL_API_ENTRY cl_int CL_API_CALL clRetainContext(cl_context context) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -272,7 +290,9 @@ clGetContextInfo(cl_context context, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -284,7 +304,9 @@ clSetContextDestructorCallback(cl_context context, void* user_data), void* user_data) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -300,7 +322,9 @@ clCreateCommandQueueWithProperties(cl_context context, const cl_queue_properties * properties, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -309,7 +333,9 @@ clCreateCommandQueueWithProperties(cl_context context, CL_API_ENTRY cl_int CL_API_CALL clRetainCommandQueue(cl_command_queue command_queue) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -326,7 +352,9 @@ clGetCommandQueueInfo(cl_command_queue command_queue, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -386,7 +414,9 @@ clCreateSubBuffer(cl_mem buffer, const void * buffer_create_info, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -402,7 +432,9 @@ clCreateImage(cl_context context, void * host_ptr, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -418,7 +450,9 @@ clCreatePipe(cl_context context, const cl_pipe_properties * properties, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -434,7 +468,9 @@ clCreateBufferWithProperties(cl_context context, void * host_ptr, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -447,7 +483,9 @@ clCreateImageWithProperties(cl_context context, void * host_ptr, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -456,7 +494,9 @@ clCreateImageWithProperties(cl_context context, CL_API_ENTRY cl_int CL_API_CALL clRetainMemObject(cl_mem memobj) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -474,7 +514,9 @@ clGetSupportedImageFormats(cl_context context, cl_image_format * image_formats, cl_uint * num_image_formats) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -485,7 +527,9 @@ clGetMemObjectInfo(cl_mem memobj, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -496,7 +540,9 @@ clGetImageInfo(cl_mem image, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -509,7 +555,9 @@ clGetPipeInfo(cl_mem pipe, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -523,7 +571,9 @@ clSetMemObjectDestructorCallback(cl_mem memobj, void * user_data), void * user_data) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -539,7 +589,9 @@ clSVMAlloc(cl_context context, size_t size, cl_uint alignment) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -547,7 +599,9 @@ CL_API_ENTRY void CL_API_CALL clSVMFree(cl_context context, void * svm_pointer) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE } #endif @@ -561,7 +615,9 @@ clCreateSamplerWithProperties(cl_context context, const cl_sampler_properties * sampler_properties, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -570,14 +626,18 @@ clCreateSamplerWithProperties(cl_context context, CL_API_ENTRY cl_int CL_API_CALL clRetainSampler(cl_sampler sampler) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } CL_API_ENTRY cl_int CL_API_CALL clReleaseSampler(cl_sampler sampler) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -588,7 +648,9 @@ clGetSamplerInfo(cl_sampler sampler, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -600,7 +662,9 @@ clCreateProgramWithSource(cl_context context, const size_t * lengths, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -636,7 +700,9 @@ clCreateProgramWithBuiltInKernels(cl_context context, const char * kernel_names, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -650,7 +716,9 @@ clCreateProgramWithIL(cl_context context, size_t length, cl_int* errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -659,7 +727,9 @@ clCreateProgramWithIL(cl_context context, CL_API_ENTRY cl_int CL_API_CALL clRetainProgram(cl_program program) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -695,7 +765,9 @@ clCompileProgram(cl_program program, void * user_data), void * user_data) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -711,7 +783,9 @@ clLinkProgram(cl_context context, void * user_data, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -725,7 +799,9 @@ clSetProgramReleaseCallback(cl_program program, void * user_data), void * user_data) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -735,7 +811,9 @@ clSetProgramSpecializationConstant(cl_program program, size_t spec_size, const void* spec_value) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -746,7 +824,9 @@ clSetProgramSpecializationConstant(cl_program program, CL_API_ENTRY cl_int CL_API_CALL clUnloadPlatformCompiler(cl_platform_id platform) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -759,7 +839,9 @@ clGetProgramInfo(cl_program program, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -771,7 +853,9 @@ clGetProgramBuildInfo(cl_program program, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -807,7 +891,9 @@ clCreateKernelsInProgram(cl_program program, cl_kernel * kernels, cl_uint * num_kernels_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -817,7 +903,9 @@ CL_API_ENTRY cl_kernel CL_API_CALL clCloneKernel(cl_kernel source_kernel, cl_int* errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -826,7 +914,9 @@ clCloneKernel(cl_kernel source_kernel, CL_API_ENTRY cl_int CL_API_CALL clRetainKernel(cl_kernel kernel) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -883,7 +973,9 @@ clSetKernelArgSVMPointer(cl_kernel kernel, cl_uint arg_index, const void * arg_value) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -893,7 +985,9 @@ clSetKernelExecInfo(cl_kernel kernel, size_t param_value_size, const void * param_value) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -906,7 +1000,9 @@ clGetKernelInfo(cl_kernel kernel, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -920,7 +1016,9 @@ clGetKernelArgInfo(cl_kernel kernel, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -934,7 +1032,9 @@ clGetKernelWorkGroupInfo(cl_kernel kernel, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -950,7 +1050,9 @@ clGetKernelSubGroupInfo(cl_kernel kernel, void* param_value, size_t* param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -961,7 +1063,9 @@ CL_API_ENTRY cl_int CL_API_CALL clWaitForEvents(cl_uint num_events, const cl_event * event_list) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -972,7 +1076,9 @@ clGetEventInfo(cl_event event, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -982,7 +1088,9 @@ CL_API_ENTRY cl_event CL_API_CALL clCreateUserEvent(cl_context context, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -991,14 +1099,18 @@ clCreateUserEvent(cl_context context, CL_API_ENTRY cl_int CL_API_CALL clRetainEvent(cl_event event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } CL_API_ENTRY cl_int CL_API_CALL clReleaseEvent(cl_event event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1008,7 +1120,9 @@ CL_API_ENTRY cl_int CL_API_CALL clSetUserEventStatus(cl_event event, cl_int execution_status) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1020,7 +1134,9 @@ clSetEventCallback(cl_event event, void * user_data), void * user_data) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1034,7 +1150,9 @@ clGetEventProfilingInfo(cl_event event, void * param_value, size_t * param_value_size_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1106,7 +1224,9 @@ clEnqueueReadBufferRect(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1151,7 +1271,9 @@ clEnqueueWriteBufferRect(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1170,7 +1292,9 @@ clEnqueueFillBuffer(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1187,7 +1311,9 @@ clEnqueueCopyBuffer(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1208,7 +1334,9 @@ clEnqueueCopyBufferRect(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1227,7 +1355,9 @@ clEnqueueReadImage(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1244,7 +1374,9 @@ clEnqueueWriteImage(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1260,7 +1392,9 @@ clEnqueueFillImage(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1277,7 +1411,9 @@ clEnqueueCopyImage(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1292,7 +1428,9 @@ clEnqueueCopyImageToBuffer(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1307,7 +1445,9 @@ clEnqueueCopyBufferToImage(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1323,7 +1463,9 @@ clEnqueueMapBuffer(cl_command_queue command_queue, cl_event * event, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1341,7 +1483,9 @@ clEnqueueMapImage(cl_command_queue command_queue, cl_event * event, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1353,7 +1497,9 @@ clEnqueueUnmapMemObject(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1368,7 +1514,9 @@ clEnqueueMigrateMemObjects(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1442,7 +1590,9 @@ clEnqueueNativeKernel(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1454,7 +1604,9 @@ clEnqueueMarkerWithWaitList(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1464,7 +1616,9 @@ clEnqueueBarrierWithWaitList(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1485,7 +1639,9 @@ clEnqueueSVMFree(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1499,7 +1655,9 @@ clEnqueueSVMMemcpy(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1513,7 +1671,9 @@ clEnqueueSVMMemFill(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1527,7 +1687,9 @@ clEnqueueSVMMap(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1538,7 +1700,9 @@ clEnqueueSVMUnmap(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1556,7 +1720,9 @@ clEnqueueSVMMigrateMem(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1575,7 +1741,9 @@ CL_API_ENTRY void * CL_API_CALL clGetExtensionFunctionAddressForPlatform(cl_platform_id platform, const char * func_name) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1610,7 +1778,9 @@ clCreateImage2D(cl_context context, void * host_ptr, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1626,7 +1796,9 @@ clCreateImage3D(cl_context context, void * host_ptr, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1634,7 +1806,9 @@ CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clEnqueueMarker(cl_command_queue command_queue, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1643,7 +1817,9 @@ clEnqueueWaitForEvents(cl_command_queue command_queue, cl_uint num_events, const cl_event * event_list) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } @@ -1656,14 +1832,18 @@ clEnqueueBarrier(cl_command_queue command_queue) CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED cl_int CL_API_CALL clUnloadCompiler(void) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; } CL_API_ENTRY CL_API_PREFIX__VERSION_1_1_DEPRECATED void * CL_API_CALL clGetExtensionFunctionAddress(const char * func_name) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1695,7 +1875,9 @@ clCreateSampler(cl_context context, cl_filter_mode filter_mode, cl_int * errcode_ret) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return NULL; } @@ -1706,7 +1888,9 @@ clEnqueueTask(cl_command_queue command_queue, const cl_event * event_wait_list, cl_event * event) { +#ifdef CL_VERBOSE Genode::error("[OCL] func ", __func__, " is not implemented!"); +#endif // CL_VERBOSE return CL_INVALID_VALUE; }