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_context
CL.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_context
CL.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_context
CL.clCreateContextFromTypeNative
(cl_context_properties properties, long device_type, CreateContextFunction pfn_notify, Object user_data, int[] errcode_ret) private static cl_context
CL.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_mem
CL.clCreateBuffer
(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) Creates a buffer object.private static cl_mem
CL.clCreateBufferNative
(cl_context context, long flags, long size, Pointer host_ptr, int[] errcode_ret) static cl_command_queue
CL.clCreateCommandQueue
(cl_context context, cl_device_id device, long properties, int[] errcode_ret) Deprecated.As of OpenCL 2.0.private static cl_command_queue
CL.clCreateCommandQueueNative
(cl_context context, cl_device_id device, long properties, int[] errcode_ret) static cl_command_queue
CL.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_queue
CL.clCreateCommandQueueWithPropertiesNative
(cl_context context, cl_device_id device, cl_queue_properties properties, int[] errcode_ret) static cl_mem
CL.clCreateFromGLBuffer
(cl_context context, long flags, int bufobj, int[] errcode_ret) Creates an OpenCL buffer object from an OpenGL buffer object.private static cl_mem
CL.clCreateFromGLBufferNative
(cl_context context, long flags, int bufobj, int[] errcode_ret) static cl_mem
CL.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_mem
CL.clCreateFromGLRenderbufferNative
(cl_context context, long flags, int renderbuffer, int[] errcode_ret) static cl_mem
CL.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_mem
CL.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_mem
CL.clCreateFromGLTexture2DNative
(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_mem
CL.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_mem
CL.clCreateFromGLTexture3DNative
(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) private static cl_mem
CL.clCreateFromGLTextureNative
(cl_context context, long flags, int target, int miplevel, int texture, int[] errcode_ret) static cl_mem
CL.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_mem
CL.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_mem
CL.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_mem
CL.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_mem
CL.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_mem
CL.clCreateImageNative
(cl_context context, long flags, cl_image_format image_format, cl_image_desc image_desc, Pointer host_ptr, int[] errcode_ret) static cl_mem
CL.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_mem
CL.clCreatePipeNative
(cl_context context, long flags, int pipe_packet_size, int pipe_max_packets, cl_pipe_properties properties, int[] errcode_ret) static cl_program
CL.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_program
CL.clCreateProgramWithBinaryNative
(cl_context context, int num_devices, cl_device_id[] device_list, long[] lengths, byte[][] binaries, int[] binary_status, int[] errcode_ret) static cl_program
CL.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_program
CL.clCreateProgramWithBuiltInKernelsNative
(cl_context context, int num_devices, cl_device_id[] device_list, String kernel_names, int[] errcode_ret) static cl_program
CL.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 thestrings
array into the program object.private static cl_program
CL.clCreateProgramWithSourceNative
(cl_context context, int count, String[] strings, long[] lengths, int[] errcode_ret) static cl_sampler
CL.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_sampler
CL.clCreateSamplerNative
(cl_context context, boolean normalized_coords, int addressing_mode, int filter_mode, int[] errcode_ret) static cl_sampler
CL.clCreateSamplerWithProperties
(cl_context context, cl_sampler_properties properties, int[] errcode_ret) Creates a sampler object.private static cl_sampler
CL.clCreateSamplerWithPropertiesNative
(cl_context context, cl_sampler_properties properties, int[] errcode_ret) static cl_event
CL.clCreateUserEvent
(cl_context context, int[] errcode_ret) Creates a user event object.private static cl_event
CL.clCreateUserEventNative
(cl_context context, int[] errcode_ret) static int
CL.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 int
CL.clGetContextInfoNative
(cl_context context, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static int
CL.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 int
CL.clGetGLContextInfoAPPLENative
(cl_context context, long platform_gl_ctx, int param_name, long param_value_size, Pointer param_value, long[] param_value_size_ret) static int
CL.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 int
CL.clGetSupportedImageFormatsNative
(cl_context context, long flags, int image_type, int num_entries, cl_image_format[] image_formats, int[] num_image_formats) static cl_program
CL.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_program
CL.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 int
CL.clReleaseContext
(cl_context context) Decrement the context reference count.private static int
CL.clReleaseContextNative
(cl_context context) static int
CL.clRetainContext
(cl_context context) Increment the context reference count.private static int
CL.clRetainContextNative
(cl_context context) static int
CL.clSetPrintfCallback
(cl_context context, PrintfCallbackFunction pfn_notify, Object user_data) Deprecated.As of OpenCL 2.0private static int
CL.clSetPrintfCallbackNative
(cl_context context, PrintfCallbackFunction pfn_notify, Object user_data) static Pointer
CL.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 Pointer
CL.clSVMAllocNative
(cl_context context, long flags, long size, int alignment) static void
CL.clSVMFree
(cl_context context, Pointer svm_pointer) Frees a shared virtual memory buffer allocated using clSVMAlloc.private static void
CL.clSVMFreeNative
(cl_context context, Pointer svm_pointer) void
PrintfCallbackFunction.function
(cl_context context, int printf_data_len, String printf_data_ptr, Object user_data) The function that will be called