Modifier and Type | Method and Description |
---|---|
static int |
CL.clBuildProgram(cl_program program,
int num_devices,
cl_device_id[] device_list,
java.lang.String options,
BuildProgramFunction pfn_notify,
java.lang.Object user_data)
Builds (compiles and links) a program executable from the program source or binary.
|
static int |
CL.clCompileProgram(cl_program program,
int num_devices,
cl_device_id[] device_list,
java.lang.String options,
int num_input_headers,
cl_program[] input_headers,
java.lang.String[] header_include_names,
BuildProgramFunction pfn_notify,
java.lang.Object user_data)
Compiles a programs source for all the devices or a specific device(s) in the OpenCL context
associated with
program . |
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_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_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 int |
CL.clCreateSubDevices(cl_device_id in_device,
cl_device_partition_property properties,
int num_devices,
cl_device_id[] out_devices,
int[] num_devices_ret)
Creates an array of sub-devices that each reference a non-intersecting set of compute units within
in_device . |
static int |
CL.clCreateSubDevices(cl_device_id in_device,
cl_device_partition_property properties,
int num_devices,
cl_device_id[] out_devices,
int[] num_devices_ret)
Creates an array of sub-devices that each reference a non-intersecting set of compute units within
in_device . |
static int |
CL.clGetDeviceIDs(cl_platform_id platform,
long device_type,
int num_entries,
cl_device_id[] devices,
int[] num_devices)
Obtain the list of devices available on a platform.
|
static int |
CL.clGetDeviceInfo(cl_device_id device,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Get information about an OpenCL device.
|
static int |
CL.clGetKernelWorkGroupInfo(cl_kernel kernel,
cl_device_id device,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Returns information about the kernel object that may be specific to a device.
|
static int |
CL.clGetProgramBuildInfo(cl_program program,
cl_device_id device,
int param_name,
long param_value_size,
Pointer param_value,
long[] param_value_size_ret)
Returns build information for each device in the program object.
|
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.clReleaseDevice(cl_device_id device)
Decrements the
device reference count. |
static int |
CL.clRetainDevice(cl_device_id device)
Increments the
devices reference count. |