Uses of Class
org.jocl.cl_context
-
Uses of cl_context in org.jocl
Methods in org.jocl that return cl_contextModifier and TypeMethodDescriptionstatic cl_contextCL.clCreateContext(cl_context_properties properties, int num_devices, cl_device_id[] devices, CreateContextFunction pfn_notify, Object user_data, int[] errcode_ret) Creates an OpenCL context.static cl_contextCL.clCreateContextFromType(cl_context_properties properties, long device_type, CreateContextFunction pfn_notify, Object user_data, int[] errcode_ret) Create an OpenCL context from a device type that identifies the specific device(s) to use.private static cl_contextCL.clCreateContextFromTypeNative(cl_context_properties properties, long device_type, CreateContextFunction pfn_notify, Object user_data, int[] errcode_ret) private static cl_contextCL.clCreateContextNative(cl_context_properties properties, int num_devices, cl_device_id[] devices, CreateContextFunction pfn_notify, Object user_data, int[] errcode_ret) Methods in org.jocl with parameters of type cl_contextModifier and TypeMethodDescriptionstatic cl_memCL.clCreateBuffer(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) Creates a buffer object.private static cl_memCL.clCreateBufferNative(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) static cl_command_queueCL.clCreateCommandQueue(cl_context context, cl_device_id device, long properties, int[] errcode_ret) Deprecated.As of OpenCL 2.0.private static cl_command_queueCL.clCreateCommandQueueNative(cl_context context, cl_device_id device, long properties, int[] errcode_ret) static cl_command_queueCL.clCreateCommandQueueWithProperties(cl_context context, cl_device_id device, cl_queue_properties properties, int[] errcode_ret) Create a host or device command-queue on a specific device.private static cl_command_queueCL.clCreateCommandQueueWithPropertiesNative(cl_context context, cl_device_id device, cl_queue_properties properties, int[] errcode_ret) static cl_memCL.clCreateFromGLBuffer(cl_context context, long flags, int bufobj, int[] errcode_ret) Creates an OpenCL buffer object from an OpenGL buffer object.private static cl_memCL.clCreateFromGLBufferNative(cl_context context, long flags, int bufobj, int[] errcode_ret) static cl_memCL.clCreateFromGLRenderbuffer(cl_context context, long flags, int renderbuffer, int[] errcode_ret) Creates an OpenCL 2D image object from an OpenGL renderbuffer object.private static cl_memCL.clCreateFromGLRenderbufferNative(cl_context context, long flags, int renderbuffer, int[] errcode_ret) static cl_memCL.clCreateFromGLTexture(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Creates an OpenCL image object, image array object, or image buffer object from an OpenGL texture object, texture array object, texture buffer object, or a single face of an OpenGL cubemap texture object.static cl_memCL.clCreateFromGLTexture2D(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateFromGLTexture(cl_context, long, int, int, int, int[])private static cl_memCL.clCreateFromGLTexture2DNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_memCL.clCreateFromGLTexture3D(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateFromGLTexture(cl_context, long, int, int, int, int[])private static cl_memCL.clCreateFromGLTexture3DNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) private static cl_memCL.clCreateFromGLTextureNative(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_memCL.clCreateImage(cl_context context, long flags, cl_image_format image_format, cl_image_desc image_desc, Pointer host_ptr, int[] errcode_ret) Creates a 1D image, 1D image buffer, 1D image array, 2D image, 2D image array or 3D image object.static cl_memCL.clCreateImage2D(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_row_pitch, Pointer host_ptr, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[])private static cl_memCL.clCreateImage2DNative(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_row_pitch, Pointer host_ptr, int[] errcode_ret) static cl_memCL.clCreateImage3D(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Pointer host_ptr, int[] errcode_ret) Deprecated.As of OpenCL 1.2 and replaced byCL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[])private static cl_memCL.clCreateImage3DNative(cl_context context, long flags, cl_image_format[] image_format, long image_width, long image_height, long image_depth, long image_row_pitch, long image_slice_pitch, Pointer host_ptr, int[] errcode_ret) private static cl_memCL.clCreateImageNative(cl_context context, long flags, cl_image_format image_format, cl_image_desc image_desc, Pointer host_ptr, int[] errcode_ret) static cl_memCL.clCreatePipe(cl_context context, long flags, int pipe_packet_size, int pipe_max_packets, cl_pipe_properties properties, int[] errcode_ret) Creates a pipe object.private static cl_memCL.clCreatePipeNative(cl_context context, long flags, int pipe_packet_size, int pipe_max_packets, cl_pipe_properties properties, int[] errcode_ret) static cl_programCL.clCreateProgramWithBinary(cl_context context, int num_devices, cl_device_id[] device_list, long[] lengths, byte[][] binaries, int[] binary_status, int[] errcode_ret) Creates a program object for a context, and loads the binary bits specified by binary into the program object.private static cl_programCL.clCreateProgramWithBinaryNative(cl_context context, int num_devices, cl_device_id[] device_list, long[] lengths, byte[][] binaries, int[] binary_status, int[] errcode_ret) static cl_programCL.clCreateProgramWithBuiltInKernels(cl_context context, int num_devices, cl_device_id[] device_list, String kernel_names, int[] errcode_ret) Creates a program object for a context, and loads the information related to the built-in kernels into a program object.private static cl_programCL.clCreateProgramWithBuiltInKernelsNative(cl_context context, int num_devices, cl_device_id[] device_list, String kernel_names, int[] errcode_ret) static cl_programCL.clCreateProgramWithSource(cl_context context, int count, String[] strings, long[] lengths, int[] errcode_ret) Creates a program object for a context, and loads the source code specified by the text strings in thestringsarray into the program object.private static cl_programCL.clCreateProgramWithSourceNative(cl_context context, int count, String[] strings, long[] lengths, int[] errcode_ret) static cl_samplerCL.clCreateSampler(cl_context context, boolean normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret) Deprecated.As of OpenCL 2.0.private static cl_samplerCL.clCreateSamplerNative(cl_context context, boolean normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret) static cl_samplerCL.clCreateSamplerWithProperties(cl_context context, cl_sampler_properties properties, int[] errcode_ret) Creates a sampler object.private static cl_samplerCL.clCreateSamplerWithPropertiesNative(cl_context context, cl_sampler_properties properties, int[] errcode_ret) static cl_eventCL.clCreateUserEvent(cl_context context, int[] errcode_ret) Creates a user event object.private static cl_eventCL.clCreateUserEventNative(cl_context context, int[] errcode_ret) static intCL.clGetContextInfo(cl_context context, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Query information about a context.private static intCL.clGetContextInfoNative(cl_context context, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clGetGLContextInfoAPPLE(cl_context context, long platform_gl_ctx, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) Apple extension for retrieving OpenGL context information for a CL context.private static intCL.clGetGLContextInfoAPPLENative(cl_context context, long platform_gl_ctx, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static intCL.clGetSupportedImageFormats(cl_context context, long flags, int image_type, int num_entries, cl_image_format[] image_formats, int[] num_image_formats) Get the list of image formats supported by an OpenCL implementation.private static intCL.clGetSupportedImageFormatsNative(cl_context context, long flags, int image_type, int num_entries, cl_image_format[] image_formats, int[] num_image_formats) static cl_programCL.clLinkProgram(cl_context context, int num_devices, cl_device_id[] device_list, String options, int num_input_programs, cl_program[] input_programs, BuildProgramFunction pfn_notify, Object user_data, int[] errcode_ret) Links a set of compiled program objects and libraries for all the devices or a specific device(s) in the OpenCL context and creates an executable.private static cl_programCL.clLinkProgramNative(cl_context context, int num_devices, cl_device_id[] device_list, String options, int num_input_programs, cl_program[] input_programs, BuildProgramFunction pfn_notify, Object user_data, int[] errcode_ret) static intCL.clReleaseContext(cl_context context) Decrement the context reference count.private static intCL.clReleaseContextNative(cl_context context) static intCL.clRetainContext(cl_context context) Increment the context reference count.private static intCL.clRetainContextNative(cl_context context) static intCL.clSetPrintfCallback(cl_context context, PrintfCallbackFunction pfn_notify, Object user_data) Deprecated.As of OpenCL 2.0private static intCL.clSetPrintfCallbackNative(cl_context context, PrintfCallbackFunction pfn_notify, Object user_data) static PointerCL.clSVMAlloc(cl_context context, long flags, long size, int alignment) Allocates a shared virtual memory (SVM) buffer that can be shared by the host and all devices in an OpenCL context that support shared virtual memory.private static PointerCL.clSVMAllocNative(cl_context context, long flags, long size, int alignment) static voidCL.clSVMFree(cl_context context, Pointer svm_pointer) Frees a shared virtual memory buffer allocated using clSVMAlloc.private static voidCL.clSVMFreeNative(cl_context context, Pointer svm_pointer) voidPrintfCallbackFunction.function(cl_context context, int printf_data_len, String printf_data_ptr, Object user_data) The function that will be called