com.jogamp.opencl.llb
Interface CLProgramBinding

All Known Subinterfaces:
CL, CLGL
All Known Implementing Classes:
CLAbstractImpl, CLImpl

public interface CLProgramBinding

Java bindings to OpenCL programs.

Author:
Michael Bien, GlueGen, et al.

Field Summary
static int CL_BUILD_ERROR
           
static int CL_BUILD_IN_PROGRESS
           
static int CL_BUILD_NONE
           
static int CL_BUILD_PROGRAM_FAILURE
           
static int CL_BUILD_SUCCESS
           
static int CL_PROGRAM_BINARIES
           
static int CL_PROGRAM_BINARY_SIZES
           
static int CL_PROGRAM_BUILD_LOG
           
static int CL_PROGRAM_BUILD_OPTIONS
           
static int CL_PROGRAM_BUILD_STATUS
           
static int CL_PROGRAM_CONTEXT
           
static int CL_PROGRAM_DEVICES
           
static int CL_PROGRAM_NUM_DEVICES
           
static int CL_PROGRAM_REFERENCE_COUNT
           
static int CL_PROGRAM_SOURCE
           
 
Method Summary
 int clBuildProgram(long program, int deviceCount, PointerBuffer devices, String options, BuildProgramCallback cb)
          Interface to C language function:
int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void (*pfn_notify)(cl_program, void *user_data), void * );
 long clCreateProgramWithBinary(long context, int num_devices, PointerBuffer device_list, PointerBuffer lengths, PointerBuffer binaries, IntBuffer binary_status, IntBuffer errcode_ret)
          Interface to C language function:
cl_program clCreateProgramWithBinary(cl_context context, cl_uint num_devices, cl_device_id * device_list, const size_t * lengths, const unsigned char * * binaries, cl_int * binary_status, cl_int * errcode_ret);
 long clCreateProgramWithSource(long context, int count, String[] strings, PointerBuffer lengths, IntBuffer errcode_ret)
          Interface to C language function:
cl_program clCreateProgramWithSource(cl_context context, cl_uint count, const char * * strings, const size_t * lengths, cl_int * errcode_ret);
 int clGetProgramBuildInfo(long program, long device, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
          Interface to C language function:
cl_int clGetProgramBuildInfo(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);
 int clGetProgramInfo(long program, int param_name, long param_value_size, Buffer param_value, PointerBuffer param_value_size_ret)
          Interface to C language function:
cl_int clGetProgramInfo(cl_program program, cl_program_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);
 int clReleaseProgram(long program)
          Interface to C language function:
cl_int clReleaseProgram(cl_program program);
 int clRetainProgram(long program)
          Interface to C language function:
cl_int clRetainProgram(cl_program program);
 

Field Detail

CL_BUILD_PROGRAM_FAILURE

static final int CL_BUILD_PROGRAM_FAILURE
See Also:
Constant Field Values

CL_PROGRAM_REFERENCE_COUNT

static final int CL_PROGRAM_REFERENCE_COUNT
See Also:
Constant Field Values

CL_PROGRAM_CONTEXT

static final int CL_PROGRAM_CONTEXT
See Also:
Constant Field Values

CL_PROGRAM_NUM_DEVICES

static final int CL_PROGRAM_NUM_DEVICES
See Also:
Constant Field Values

CL_PROGRAM_DEVICES

static final int CL_PROGRAM_DEVICES
See Also:
Constant Field Values

CL_PROGRAM_SOURCE

static final int CL_PROGRAM_SOURCE
See Also:
Constant Field Values

CL_PROGRAM_BINARY_SIZES

static final int CL_PROGRAM_BINARY_SIZES
See Also:
Constant Field Values

CL_PROGRAM_BINARIES

static final int CL_PROGRAM_BINARIES
See Also:
Constant Field Values

CL_PROGRAM_BUILD_STATUS

static final int CL_PROGRAM_BUILD_STATUS
See Also:
Constant Field Values

CL_PROGRAM_BUILD_OPTIONS

static final int CL_PROGRAM_BUILD_OPTIONS
See Also:
Constant Field Values

CL_PROGRAM_BUILD_LOG

static final int CL_PROGRAM_BUILD_LOG
See Also:
Constant Field Values

CL_BUILD_SUCCESS

static final int CL_BUILD_SUCCESS
See Also:
Constant Field Values

CL_BUILD_NONE

static final int CL_BUILD_NONE
See Also:
Constant Field Values

CL_BUILD_ERROR

static final int CL_BUILD_ERROR
See Also:
Constant Field Values

CL_BUILD_IN_PROGRESS

static final int CL_BUILD_IN_PROGRESS
See Also:
Constant Field Values
Method Detail

clCreateProgramWithBinary

long clCreateProgramWithBinary(long context,
                               int num_devices,
                               PointerBuffer device_list,
                               PointerBuffer lengths,
                               PointerBuffer binaries,
                               IntBuffer binary_status,
                               IntBuffer errcode_ret)
Interface to C language function:
cl_program clCreateProgramWithBinary(cl_context context, cl_uint num_devices, cl_device_id * device_list, const size_t * lengths, const unsigned char * * binaries, cl_int * binary_status, cl_int * errcode_ret);

Parameters:
device_list - a direct only PointerBuffer
lengths - a direct only PointerBuffer
binaries - a direct only PointerBuffer
binary_status - a direct only IntBuffer
errcode_ret - a direct only IntBuffer

clCreateProgramWithSource

long clCreateProgramWithSource(long context,
                               int count,
                               String[] strings,
                               PointerBuffer lengths,
                               IntBuffer errcode_ret)
Interface to C language function:
cl_program clCreateProgramWithSource(cl_context context, cl_uint count, const char * * strings, const size_t * lengths, cl_int * errcode_ret);

Parameters:
lengths - a direct only PointerBuffer
errcode_ret - a direct only IntBuffer

clGetProgramBuildInfo

int clGetProgramBuildInfo(long program,
                          long device,
                          int param_name,
                          long param_value_size,
                          Buffer param_value,
                          PointerBuffer param_value_size_ret)
Interface to C language function:
cl_int clGetProgramBuildInfo(cl_program program, cl_device_id device, cl_program_build_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);

Parameters:
param_value - a direct only Buffer
param_value_size_ret - a direct only PointerBuffer

clGetProgramInfo

int clGetProgramInfo(long program,
                     int param_name,
                     long param_value_size,
                     Buffer param_value,
                     PointerBuffer param_value_size_ret)
Interface to C language function:
cl_int clGetProgramInfo(cl_program program, cl_program_info param_name, size_t param_value_size, void * param_value, size_t * param_value_size_ret);

Parameters:
param_value - a direct only Buffer
param_value_size_ret - a direct only PointerBuffer

clReleaseProgram

int clReleaseProgram(long program)
Interface to C language function:
cl_int clReleaseProgram(cl_program program);


clRetainProgram

int clRetainProgram(long program)
Interface to C language function:
cl_int clRetainProgram(cl_program program);


clBuildProgram

int clBuildProgram(long program,
                   int deviceCount,
                   PointerBuffer devices,
                   String options,
                   BuildProgramCallback cb)
Interface to C language function:
int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void (*pfn_notify)(cl_program, void *user_data), void * );