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.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.static cl_command_queueCL.clCreateCommandQueue(cl_context context, cl_device_id device, long properties, int[] errcode_ret) Deprecated.As of OpenCL 2.0.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.static cl_memCL.clCreateFromGLBuffer(cl_context context, long flags, int bufobj, int[] errcode_ret) Creates an OpenCL buffer object from an OpenGL buffer object.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.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[])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[])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[])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[])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.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.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.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.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.static cl_samplerCL.clCreateSamplerWithProperties(cl_context context, cl_sampler_properties properties, int[] errcode_ret) Creates a sampler object.static cl_eventCL.clCreateUserEvent(cl_context context, int[] errcode_ret) Creates a user event object.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.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.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.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.static intCL.clReleaseContext(cl_context context) Decrement the context reference count.static intCL.clRetainContext(cl_context context) Increment the context reference count.static intCL.clSetPrintfCallback(cl_context context, PrintfCallbackFunction pfn_notify, Object user_data) Deprecated.As of OpenCL 2.0static 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.static voidCL.clSVMFree(cl_context context, Pointer svm_pointer) Frees a shared virtual memory buffer allocated using clSVMAlloc.voidPrintfCallbackFunction.function(cl_context context, int printf_data_len, String printf_data_ptr, Object user_data) The function that will be called