Top Description Fields Constructors Methods
org.lwjgl.opencl

public final Class CL12

extends Object
Class Inheritance
Imports
org.lwjgl.*, java.nio.*

The core OpenCL 1.1 API

Field Summary

Modifier and TypeField and Description
public static final int
CL_BLOCKING

cl_bool

public static final int
CL_COMMAND_BARRIER

cl_device_type - bitfield

public static final int
CL_COMMAND_FILL_BUFFER

cl_device_type - bitfield

public static final int
CL_COMMAND_FILL_IMAGE

cl_device_type - bitfield

public static final int
CL_COMMAND_MIGRATE_MEM_OBJECTS

cl_device_type - bitfield

public static final int
public static final int
CL_CONTEXT_INTEROP_USER_SYNC

cl_device_type - bitfield

public static final int
CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE

cl_device_type - bitfield

public static final int
CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE

cl_device_type - bitfield

public static final int
CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE

cl_device_type - bitfield

public static final int
CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE

cl_device_type - bitfield

public static final int
public static final int
CL_DEVICE_AFFINITY_DOMAIN_NUMA

cl_device_type - bitfield

public static final int
CL_DEVICE_BUILT_IN_KERNELS

cl_device_type - bitfield

public static final int
CL_DEVICE_DOUBLE_FP_CONFIG

cl_device_type - bitfield

public static final int
CL_DEVICE_IMAGE_MAX_ARRAY_SIZE

cl_device_type - bitfield

public static final int
CL_DEVICE_IMAGE_MAX_BUFFER_SIZE

cl_device_type - bitfield

public static final int
CL_DEVICE_LINKER_AVAILABLE

cl_device_type - bitfield

public static final int
CL_DEVICE_PARENT_DEVICE

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_AFFINITY_DOMAIN

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_BY_COUNTS

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_BY_COUNTS_LIST_END

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_EQUALLY

cl_device_type - bitfield

public static final int
public static final int
CL_DEVICE_PARTITION_MAX_SUB_DEVICES

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_PROPERTIES

cl_device_type - bitfield

public static final int
CL_DEVICE_PARTITION_TYPE

cl_device_type - bitfield

public static final int
CL_DEVICE_PREFERRED_INTEROP_USER_SYNC

cl_device_type - bitfield

public static final int
CL_DEVICE_PRINTF_BUFFER_SIZE

cl_device_type - bitfield

public static final int
CL_DEVICE_REFERENCE_COUNT

cl_device_type - bitfield

public static final int
CL_DEVICE_TYPE_CUSTOM

cl_device_type - bitfield

public static final int
CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT

cl_device_type - bitfield

public static final int
CL_IMAGE_ARRAY_SIZE

cl_device_type - bitfield

public static final int
CL_IMAGE_BUFFER

cl_device_type - bitfield

public static final int
CL_IMAGE_NUM_MIP_LEVELS

cl_device_type - bitfield

public static final int
CL_IMAGE_NUM_SAMPLES

cl_device_type - bitfield

public static final int
public static final int
public static final int
public static final int
public static final int
CL_KERNEL_ARG_ACCESS_NONE

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ACCESS_QUALIFIER

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ACCESS_READ_ONLY

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ACCESS_READ_WRITE

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ACCESS_WRITE_ONLY

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ADDRESS_CONSTANT

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ADDRESS_GLOBAL

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ADDRESS_LOCAL

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ADDRESS_PRIVATE

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_ADDRESS_QUALIFIER

cl_device_type - bitfield

public static final int
public static final int
CL_KERNEL_ARG_NAME

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_CONST

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_NAME

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_NONE

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_QUALIFIER

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_RESTRICT

cl_device_type - bitfield

public static final int
CL_KERNEL_ARG_TYPE_VOLATILE

cl_device_type - bitfield

public static final int
CL_KERNEL_ATTRIBUTES

cl_device_type - bitfield

public static final int
CL_KERNEL_GLOBAL_WORK_SIZE

cl_device_type - bitfield

public static final int
public static final int
CL_MAP_WRITE_INVALIDATE_REGION

cl_device_type - bitfield

public static final int
CL_MEM_HOST_NO_ACCESS

cl_device_type - bitfield

public static final int
CL_MEM_HOST_READ_ONLY

cl_device_type - bitfield

public static final int
CL_MEM_HOST_WRITE_ONLY

cl_device_type - bitfield

public static final int
CL_MEM_OBJECT_IMAGE1D

cl_device_type - bitfield

public static final int
CL_MEM_OBJECT_IMAGE1D_ARRAY

cl_device_type - bitfield

public static final int
CL_MEM_OBJECT_IMAGE1D_BUFFER

cl_device_type - bitfield

public static final int
CL_MEM_OBJECT_IMAGE2D_ARRAY

cl_device_type - bitfield

public static final int
CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED

cl_device_type - bitfield

public static final int
CL_MIGRATE_MEM_OBJECT_HOST

cl_device_type - bitfield

public static final int
public static final int
CL_PROGRAM_BINARY_TYPE

cl_device_type - bitfield

public static final int
CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT

cl_device_type - bitfield

public static final int
CL_PROGRAM_BINARY_TYPE_EXECUTABLE

cl_device_type - bitfield

public static final int
CL_PROGRAM_BINARY_TYPE_LIBRARY

cl_device_type - bitfield

public static final int
CL_PROGRAM_BINARY_TYPE_NONE

cl_device_type - bitfield

public static final int
CL_PROGRAM_KERNEL_NAMES

cl_device_type - bitfield

public static final int
CL_PROGRAM_NUM_KERNELS

cl_device_type - bitfield

public static final int
CL_VERSION_1_2

OpenCL Version

Constructor Summary

AccessConstructor and Description
private
CL12()

Method Summary

Modifier and TypeMethod and Description
public static int
clCompileProgram(CLProgram program, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_header, ByteBuffer header_include_name, CLCompileProgramCallback pfn_notify)

Single null-terminated header include name.

public static int
clCompileProgram(CLProgram program, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_headers, ByteBuffer[] header_include_names, CLCompileProgramCallback pfn_notify)

Overloads clCompileProgram.

public static int
clCompileProgram(CLProgram program, PointerBuffer device_list, CharSequence options, PointerBuffer input_header, CharSequence header_include_name, CLCompileProgramCallback pfn_notify)

Overloads clCompileProgram.

public static int
clCompileProgram(CLProgram program, PointerBuffer device_list, CharSequence options, PointerBuffer input_header, CharSequence[] header_include_name, CLCompileProgramCallback pfn_notify)

Overloads clCompileProgram.

public static int
clCompileProgramMulti(CLProgram program, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_headers, ByteBuffer header_include_names, CLCompileProgramCallback pfn_notify)

Overloads clCompileProgram.

public static CLMem
clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, ByteBuffer host_ptr, IntBuffer errcode_ret)

public static CLMem
clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, FloatBuffer host_ptr, IntBuffer errcode_ret)

public static CLMem
clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, IntBuffer host_ptr, IntBuffer errcode_ret)

public static CLMem
clCreateImage(CLContext context, long flags, ByteBuffer image_format, ByteBuffer image_desc, ShortBuffer host_ptr, IntBuffer errcode_ret)

public static CLProgram
clCreateProgramWithBuiltInKernels(CLContext context, PointerBuffer device_list, ByteBuffer kernel_names, IntBuffer errcode_ret)

public static CLProgram
clCreateProgramWithBuiltInKernels(CLContext context, PointerBuffer device_list, CharSequence kernel_names, IntBuffer errcode_ret)

Overloads clCreateProgramWithBuiltInKernels.

public static int
clCreateSubDevices(CLDevice in_device, LongBuffer properties, PointerBuffer out_devices, IntBuffer num_devices_ret)

public static int
public static int
clEnqueueFillBuffer(CLCommandQueue command_queue, CLMem buffer, ByteBuffer pattern, long offset, long size, PointerBuffer event_wait_list, PointerBuffer event)

public static int
clEnqueueFillImage(CLCommandQueue command_queue, CLMem image, ByteBuffer fill_color, PointerBuffer origin, PointerBuffer region, PointerBuffer event_wait_list, PointerBuffer event)

public static int
public static int
clEnqueueMigrateMemObjects(CLCommandQueue command_queue, PointerBuffer mem_objects, long flags, PointerBuffer event_wait_list, PointerBuffer event)

pack-priv static CLFunctionAddress
pack-priv static CLFunctionAddress
clGetExtensionFunctionAddressForPlatform(CLPlatform platform, CharSequence func_name)

Overloads clGetExtensionFunctionAddressForPlatform.

public static int
clGetKernelArgInfo(CLKernel kernel, int arg_indx, int param_name, ByteBuffer param_value, PointerBuffer param_value_size_ret)

public static CLProgram
clLinkProgram(CLContext context, PointerBuffer device_list, ByteBuffer options, PointerBuffer input_programs, CLLinkProgramCallback pfn_notify, IntBuffer errcode_ret)

public static CLProgram
clLinkProgram(CLContext context, PointerBuffer device_list, CharSequence options, PointerBuffer input_programs, CLLinkProgramCallback pfn_notify, IntBuffer errcode_ret)

Overloads clLinkProgram.

public static int

Returns:

the error code
clReleaseDevice
(CLDevice
the parent CLDevice

device
)

Warning

LWJGL will not automatically release any objects associated with sub-devices.

public static int
public static int
public static int
pack-priv static native int
nclCompileProgram(long program, int device_list_num_devices, long device_list, long options, int num_input_headers, long input_header, long header_include_name, long pfn_notify, long user_data, long function_pointer)

pack-priv static native int
nclCompileProgram3(long program, int device_list_num_devices, long device_list, long options, int num_input_headers, long input_headers, ByteBuffer[] header_include_names, long pfn_notify, long user_data, long function_pointer)

pack-priv static native int
nclCompileProgramMulti(long program, int device_list_num_devices, long device_list, long options, int input_headers_num_input_headers, long input_headers, long header_include_names, long pfn_notify, long user_data, long function_pointer)

pack-priv static native long
nclCreateImage(long context, long flags, long image_format, long image_desc, long host_ptr, long errcode_ret, long function_pointer)

pack-priv static native long
nclCreateProgramWithBuiltInKernels(long context, int device_list_num_devices, long device_list, long kernel_names, long errcode_ret, long function_pointer)

pack-priv static native int
nclCreateSubDevices(long in_device, long properties, int out_devices_num_devices, long out_devices, long num_devices_ret, long function_pointer)

pack-priv static native int
nclEnqueueBarrierWithWaitList(long command_queue, int event_wait_list_num_events_in_wait_list, long event_wait_list, long event, long function_pointer)

pack-priv static native int
nclEnqueueFillBuffer(long command_queue, long buffer, long pattern, long pattern_pattern_size, long offset, long size, int event_wait_list_num_events_in_wait_list, long event_wait_list, long event, long function_pointer)

pack-priv static native int
nclEnqueueFillImage(long command_queue, long image, long fill_color, long origin, long region, int event_wait_list_num_events_in_wait_list, long event_wait_list, long event, long function_pointer)

pack-priv static native int
nclEnqueueMarkerWithWaitList(long command_queue, int event_wait_list_num_events_in_wait_list, long event_wait_list, long event, long function_pointer)

pack-priv static native int
nclEnqueueMigrateMemObjects(long command_queue, int mem_objects_num_mem_objects, long mem_objects, long flags, int event_wait_list_num_events_in_wait_list, long event_wait_list, long event, long function_pointer)

pack-priv static native long
nclGetExtensionFunctionAddressForPlatform(long platform, long func_name, long function_pointer)

pack-priv static native int
nclGetKernelArgInfo(long kernel, int arg_indx, int param_name, long param_value_param_value_size, long param_value, long param_value_size_ret, long function_pointer)

pack-priv static native long
nclLinkProgram(long context, int device_list_num_devices, long device_list, long options, int input_programs_num_input_programs, long input_programs, long pfn_notify, long user_data, long errcode_ret, long function_pointer)

pack-priv static native int
nclReleaseDevice(long device, long function_pointer)

pack-priv static native int
nclRetainDevice(long device, long function_pointer)

pack-priv static native int
nclSetPrintfCallback(long context, long pfn_notify, long user_data, long function_pointer)

pack-priv static native int
nclUnloadPlatformCompiler(long platform, long function_pointer)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait