From 4d064b773215e16e26bd5394a91690ca2a560bbe Mon Sep 17 00:00:00 2001 From: Manuel Bottini Date: Wed, 27 Nov 2019 11:11:15 +0000 Subject: COMPMID-2960: Remove OpenCL and GLES stubs if not used Change-Id: I429059bb57f90bc657db055e21d39e73a13849eb Signed-off-by: Manuel Bottini Reviewed-on: https://review.mlplatform.org/c/2372 Reviewed-by: Michele Di Giorgio Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins --- opencl-1.2-stubs/SConscript | 5 - opencl-1.2-stubs/opencl_stubs.c | 1003 --------------------------------------- 2 files changed, 1008 deletions(-) delete mode 100644 opencl-1.2-stubs/SConscript delete mode 100755 opencl-1.2-stubs/opencl_stubs.c (limited to 'opencl-1.2-stubs') diff --git a/opencl-1.2-stubs/SConscript b/opencl-1.2-stubs/SConscript deleted file mode 100644 index da37282fe8..0000000000 --- a/opencl-1.2-stubs/SConscript +++ /dev/null @@ -1,5 +0,0 @@ -Import("env") - -opencl = env.SharedLibrary("OpenCL", "opencl_stubs.c") -alias = Alias("opencl", opencl) -Default(alias) diff --git a/opencl-1.2-stubs/opencl_stubs.c b/opencl-1.2-stubs/opencl_stubs.c deleted file mode 100755 index 3bfe3a0016..0000000000 --- a/opencl-1.2-stubs/opencl_stubs.c +++ /dev/null @@ -1,1003 +0,0 @@ -#define CL_TARGET_OPENCL_VERSION 200 -#include -#include - -#define PRINT_STUB_ERROR printf("\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\nERROR: %s from stub libOpenCL.so library called! This library can be used to resolve OpenCL symbols at compile time but must *not* be in your runtime path (You need to use a real OpenCL implementation, this one is empty)\n!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n", __func__) - -cl_int -clGetPlatformIDs(cl_uint num_entries, - cl_platform_id * platforms, - cl_uint * num_platforms) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetPlatformInfo(cl_platform_id platform, - cl_platform_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetDeviceIDs(cl_platform_id platform, - cl_device_type device_type, - cl_uint num_entries, - cl_device_id * devices, - cl_uint * num_devices) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetDeviceInfo(cl_device_id device, - cl_device_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clCreateSubDevices(cl_device_id in_device, - const cl_device_partition_property * properties, - cl_uint num_devices, - cl_device_id * out_devices, - cl_uint * num_devices_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clRetainDevice(cl_device_id device) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseDevice(cl_device_id device) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_context -clCreateContext(const cl_context_properties * properties, - cl_uint num_devices, - const cl_device_id * devices, - void (CL_CALLBACK * pfn_notify)(const char *, const void *, size_t, void *), - void * user_data, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_context -clCreateContextFromType(const cl_context_properties * properties, - cl_device_type device_type, - void (CL_CALLBACK * pfn_notify )(const char *, const void *, size_t, void *), - void * user_data, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainContext(cl_context context) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseContext(cl_context context) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetContextInfo(cl_context context, - cl_context_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_command_queue -clCreateCommandQueue(cl_context context, - cl_device_id device, - cl_command_queue_properties properties, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainCommandQueue(cl_command_queue command_queue) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseCommandQueue(cl_command_queue command_queue) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetCommandQueueInfo(cl_command_queue command_queue, - cl_command_queue_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_mem -clCreateBuffer(cl_context context, - cl_mem_flags flags, - size_t size, - void * host_ptr, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_mem -clCreateSubBuffer(cl_mem buffer, - cl_mem_flags flags, - cl_buffer_create_type buffer_create_type, - const void * buffer_create_info, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_mem -clCreateImage(cl_context context, - cl_mem_flags flags, - const cl_image_format * image_format, - const cl_image_desc * image_desc, - void * host_ptr, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainMemObject(cl_mem memobj) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseMemObject(cl_mem memobj) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetSupportedImageFormats(cl_context context, - cl_mem_flags flags, - cl_mem_object_type image_type, - cl_uint num_entries, - cl_image_format * image_formats, - cl_uint * num_image_formats) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetMemObjectInfo(cl_mem memobj, - cl_mem_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetImageInfo(cl_mem image, - cl_image_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clSetMemObjectDestructorCallback( cl_mem memobj, - void (CL_CALLBACK * pfn_notify)( cl_mem memobj, void* user_data), - void * user_data ) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_sampler -clCreateSampler(cl_context context, - cl_bool normalized_coords, - cl_addressing_mode addressing_mode, - cl_filter_mode filter_mode, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainSampler(cl_sampler sampler) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseSampler(cl_sampler sampler) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetSamplerInfo(cl_sampler sampler, - cl_sampler_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_program -clCreateProgramWithSource(cl_context context, - cl_uint count, - const char ** strings, - const size_t * lengths, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_program -clCreateProgramWithBinary(cl_context context, - cl_uint num_devices, - const cl_device_id * device_list, - const size_t * lengths, - const unsigned char ** binaries, - cl_int * binary_status, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_program -clCreateProgramWithBuiltInKernels(cl_context context, - cl_uint num_devices, - const cl_device_id * device_list, - const char * kernel_names, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainProgram(cl_program program) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseProgram(cl_program program) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clBuildProgram(cl_program program, - cl_uint num_devices, - const cl_device_id * device_list, - const char * options, - void (CL_CALLBACK * pfn_notify)(cl_program program, void * user_data), - void * user_data) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clCompileProgram(cl_program program, - cl_uint num_devices, - const cl_device_id * device_list, - const char * options, - cl_uint num_input_headers, - const cl_program * input_headers, - const char ** header_include_names, - void (CL_CALLBACK * pfn_notify)(cl_program program, void * user_data), - void * user_data) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_program -clLinkProgram(cl_context context, - cl_uint num_devices, - const cl_device_id * device_list, - const char * options, - cl_uint num_input_programs, - const cl_program * input_programs, - void (CL_CALLBACK * pfn_notify)(cl_program program, void * user_data), - void * user_data, - cl_int * errcode_ret ) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - - -cl_int -clUnloadPlatformCompiler(cl_platform_id platform) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetProgramInfo(cl_program program, - cl_program_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetProgramBuildInfo(cl_program program, - cl_device_id device, - cl_program_build_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_kernel -clCreateKernel(cl_program program, - const char * kernel_name, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clCreateKernelsInProgram(cl_program program, - cl_uint num_kernels, - cl_kernel * kernels, - cl_uint * num_kernels_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clRetainKernel(cl_kernel kernel) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseKernel(cl_kernel kernel) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clSetKernelArg(cl_kernel kernel, - cl_uint arg_index, - size_t arg_size, - const void * arg_value) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetKernelInfo(cl_kernel kernel, - cl_kernel_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetKernelArgInfo(cl_kernel kernel, - cl_uint arg_indx, - cl_kernel_arg_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetKernelWorkGroupInfo(cl_kernel kernel, - cl_device_id device, - cl_kernel_work_group_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clWaitForEvents(cl_uint num_events, - const cl_event * event_list) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetEventInfo(cl_event event, - cl_event_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_event -clCreateUserEvent(cl_context context, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clRetainEvent(cl_event event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clReleaseEvent(cl_event event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clSetUserEventStatus(cl_event event, - cl_int execution_status) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clSetEventCallback( cl_event event, - cl_int command_exec_callback_type, - void (CL_CALLBACK * pfn_notify)(cl_event, cl_int, void *), - void * user_data) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clGetEventProfilingInfo(cl_event event, - cl_profiling_info param_name, - size_t param_value_size, - void * param_value, - size_t * param_value_size_ret) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clFlush(cl_command_queue command_queue) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clFinish(cl_command_queue command_queue) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueReadBuffer(cl_command_queue command_queue, - cl_mem buffer, - cl_bool blocking_read, - size_t offset, - size_t size, - void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueReadBufferRect(cl_command_queue command_queue, - cl_mem buffer, - cl_bool blocking_read, - const size_t * buffer_offset, - const size_t * host_offset, - const size_t * region, - size_t buffer_row_pitch, - size_t buffer_slice_pitch, - size_t host_row_pitch, - size_t host_slice_pitch, - void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueWriteBuffer(cl_command_queue command_queue, - cl_mem buffer, - cl_bool blocking_write, - size_t offset, - size_t size, - const void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueWriteBufferRect(cl_command_queue command_queue, - cl_mem buffer, - cl_bool blocking_write, - const size_t * buffer_offset, - const size_t * host_offset, - const size_t * region, - size_t buffer_row_pitch, - size_t buffer_slice_pitch, - size_t host_row_pitch, - size_t host_slice_pitch, - const void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueFillBuffer(cl_command_queue command_queue, - cl_mem buffer, - const void * pattern, - size_t pattern_size, - size_t offset, - size_t size, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueCopyBuffer(cl_command_queue command_queue, - cl_mem src_buffer, - cl_mem dst_buffer, - size_t src_offset, - size_t dst_offset, - size_t size, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueCopyBufferRect(cl_command_queue command_queue, - cl_mem src_buffer, - cl_mem dst_buffer, - const size_t * src_origin, - const size_t * dst_origin, - const size_t * region, - size_t src_row_pitch, - size_t src_slice_pitch, - size_t dst_row_pitch, - size_t dst_slice_pitch, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueReadImage(cl_command_queue command_queue, - cl_mem image, - cl_bool blocking_read, - const size_t * origin, - const size_t * region, - size_t row_pitch, - size_t slice_pitch, - void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueWriteImage(cl_command_queue command_queue, - cl_mem image, - cl_bool blocking_write, - const size_t * origin, - const size_t * region, - size_t input_row_pitch, - size_t input_slice_pitch, - const void * ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueFillImage(cl_command_queue command_queue, - cl_mem image, - const void * fill_color, - const size_t * origin, - const size_t * region, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueCopyImage(cl_command_queue command_queue, - cl_mem src_image, - cl_mem dst_image, - const size_t * src_origin, - const size_t * dst_origin, - const size_t * region, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueCopyImageToBuffer(cl_command_queue command_queue, - cl_mem src_image, - cl_mem dst_buffer, - const size_t * src_origin, - const size_t * region, - size_t dst_offset, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueCopyBufferToImage(cl_command_queue command_queue, - cl_mem src_buffer, - cl_mem dst_image, - size_t src_offset, - const size_t * dst_origin, - const size_t * region, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -void * -clEnqueueMapBuffer(cl_command_queue command_queue, - cl_mem buffer, - cl_bool blocking_map, - cl_map_flags map_flags, - size_t offset, - size_t size, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -void * -clEnqueueMapImage(cl_command_queue command_queue, - cl_mem image, - cl_bool blocking_map, - cl_map_flags map_flags, - const size_t * origin, - const size_t * region, - size_t * image_row_pitch, - size_t * image_slice_pitch, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clEnqueueUnmapMemObject(cl_command_queue command_queue, - cl_mem memobj, - void * mapped_ptr, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueMigrateMemObjects(cl_command_queue command_queue, - cl_uint num_mem_objects, - const cl_mem * mem_objects, - cl_mem_migration_flags flags, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueNDRangeKernel(cl_command_queue command_queue, - cl_kernel kernel, - cl_uint work_dim, - const size_t * global_work_offset, - const size_t * global_work_size, - const size_t * local_work_size, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueTask(cl_command_queue command_queue, - cl_kernel kernel, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueNativeKernel(cl_command_queue command_queue, - void (CL_CALLBACK * user_func)(void *), - void * args, - size_t cb_args, - cl_uint num_mem_objects, - const cl_mem * mem_list, - const void ** args_mem_loc, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueMarkerWithWaitList(cl_command_queue command_queue, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueBarrierWithWaitList(cl_command_queue command_queue, - cl_uint num_events_in_wait_list, - const cl_event * event_wait_list, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -void * -clGetExtensionFunctionAddressForPlatform(cl_platform_id platform, - const char * func_name) -{ - PRINT_STUB_ERROR; - return NULL; -} - - -cl_mem -clCreateImage2D(cl_context context, - cl_mem_flags flags, - const cl_image_format * image_format, - size_t image_width, - size_t image_height, - size_t image_row_pitch, - void * host_ptr, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_mem -clCreateImage3D(cl_context context, - cl_mem_flags flags, - const cl_image_format * image_format, - size_t image_width, - size_t image_height, - size_t image_depth, - size_t image_row_pitch, - size_t image_slice_pitch, - void * host_ptr, - cl_int * errcode_ret) -{ - PRINT_STUB_ERROR; - if( errcode_ret ) *errcode_ret = CL_OUT_OF_RESOURCES; - return NULL; -} - -cl_int -clEnqueueMarker(cl_command_queue command_queue, - cl_event * event) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueWaitForEvents(cl_command_queue command_queue, - cl_uint num_events, - const cl_event * event_list) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clEnqueueBarrier(cl_command_queue command_queue) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -cl_int -clUnloadCompiler(void) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} - -void * -clGetExtensionFunctionAddress(const char * func_name) -{ - PRINT_STUB_ERROR; - return NULL; -} - -cl_int -clSetCommandQueueProperty(cl_command_queue command_queue, - cl_command_queue_properties properties, - cl_bool enable, - cl_command_queue_properties * old_properties) -{ - PRINT_STUB_ERROR; - return CL_OUT_OF_RESOURCES; -} -- cgit v1.2.1