Modifier and Type | Method and Description |
---|---|
static cl_context |
CL.clCreateContext(cl_context_properties properties,
int num_devices,
cl_device_id[] devices,
CreateContextFunction pfn_notify,
java.lang.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,
java.lang.Object user_data,
int[] errcode_ret)
Create an OpenCL context from a device type that identifies the specific device(s) to use.
|
Modifier and Type | Method and Description |
---|---|
static cl_mem |
CL.clCreateBuffer(cl_context context,
long flags,
long size,
Pointer host_ptr,
int[] errcode_ret)
Creates a buffer object.
|
static cl_command_queue |
CL.clCreateCommandQueue(cl_context context,
cl_device_id device,
long properties,
int[] errcode_ret)
Deprecated.
As of OpenCL 2.0. Use
CL.clCreateCommandQueueWithProperties(org.jocl.cl_context, org.jocl.cl_device_id, org.jocl.cl_queue_properties, int[]) instead |
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.
|
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.
|
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.
|
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 by
CL.clCreateFromGLTexture(cl_context, long, int, int, int, int[]) |
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 by
CL.clCreateFromGLTexture(cl_context, long, int, int, int, int[]) |
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 by
CL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[]) |
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 by
CL.clCreateImage(cl_context, long, cl_image_format, cl_image_desc, Pointer, int[]) |
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.
|
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.
|
static cl_program |
CL.clCreateProgramWithBuiltInKernels(cl_context context,
int num_devices,
cl_device_id[] device_list,
java.lang.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_program |
CL.clCreateProgramWithSource(cl_context context,
int count,
java.lang.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
the
strings array into the program object. |
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. Use
CL.clCreateSamplerWithProperties(org.jocl.cl_context, org.jocl.cl_sampler_properties, int[]) instead. |
static cl_sampler |
CL.clCreateSamplerWithProperties(cl_context context,
cl_sampler_properties properties,
int[] errcode_ret)
Creates a sampler object.
|
static cl_event |
CL.clCreateUserEvent(cl_context context,
int[] errcode_ret)
Creates a user event object.
|
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.
|
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.
|
static cl_program |
CL.clLinkProgram(cl_context context,
int num_devices,
cl_device_id[] device_list,
java.lang.String options,
int num_input_programs,
cl_program[] input_programs,
BuildProgramFunction pfn_notify,
java.lang.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 int |
CL.clReleaseContext(cl_context context)
Decrement the context reference count.
|
static int |
CL.clRetainContext(cl_context context)
Increment the context reference count.
|
static int |
CL.clSetPrintfCallback(cl_context context,
PrintfCallbackFunction pfn_notify,
java.lang.Object user_data)
Deprecated.
As of OpenCL 2.0
|
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.
|
static void |
CL.clSVMFree(cl_context context,
Pointer svm_pointer)
Frees a shared virtual memory buffer allocated using clSVMAlloc.
|
void |
PrintfCallbackFunction.function(cl_context context,
int printf_data_len,
java.lang.String printf_data_ptr,
java.lang.Object user_data)
The function that will be called
|