Top Description Fields Constructors Methods
com.jogamp.opencl.llb.impl

public Class CLImpl

extends CLAbstractImpl
Class Inheritance
Imports
com.jogamp.common.nio.PointerBuffer, com.jogamp.common.util.LongLongHashMap, com.jogamp.opencl.CLErrorHandler, .CLException, java.nio.ByteBuffer, .IntBuffer

Java bindings to OpenCL, the Open Computing Language.
Author
Michael Bien, et al.

Field Summary

Modifier and TypeField and Description
private final LongLongHashMap
Inherited from com.jogamp.opencl.llb.impl.CLAbstractImpl:
addressTabledynamicLookupHelper

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
clBuildProgram(final long program, final int deviceCount, final PointerBuffer deviceList, final String options, final BuildProgramCallback cb)

Implements com.jogamp.opencl.llb.CLProgramBinding.clBuildProgram.

Interface to C language function: int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * );
private native int
clBuildProgram0(long program, int deviceCount, Object deviceList, int deviceListOffset, String options, BuildProgramCallback cb, long address)

Entry point to C language function: int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * );

public long
clCreateContext(final PointerBuffer properties, final PointerBuffer devices, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLContextBinding.clCreateContext.

Interface to C language function: cl_context {@native clCreateContext}(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );
private native long
clCreateContext0(Object cl_context_properties, int props_offset, int numDevices, Object devices, int devices_offset, Object pfn_notify, long[] global, Object errcode_ret, int err_offset, long address)

public long
clCreateContextFromType(final PointerBuffer properties, final long device_type, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLContextBinding.clCreateContextFromType.

Interface to C language function: cl_context {@native clCreateContextFromType}(cl_context_properties *properties, cl_device_type device_type, void (*pfn_notify)(const char *errinfo, const void *private_info, size_t cb, void *user_data), void *user_data, cl_int *errcode_ret) ;
private native long
clCreateContextFromType0(Object properties, int props_offset, long device_type, Object pfn_notify, long[] global, Object errcode_ret, int err_offset, long address)

public ByteBuffer
clEnqueueMapImage(final long command_queue, final long image, final int blocking_map, final long map_flags, final PointerBuffer origin, final PointerBuffer range, final PointerBuffer image_row_pitch, final PointerBuffer image_slice_pitch, final int num_events_in_wait_list, final PointerBuffer event_wait_list, final PointerBuffer event, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLCommandQueueBinding.clEnqueueMapImage.

Interface to C language function: void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret);
private native ByteBuffer
clEnqueueMapImage0(long command_queue, long image, int blocking_map, long map_flags, Object origin, int origin_byte_offset, Object range, int range_byte_offset, Object image_row_pitch, int image_row_pitch_byte_offset, Object image_slice_pitch, int image_slice_pitch_byte_offset, int num_events_in_wait_list, Object event_wait_list, int event_wait_list_byte_offset, Object event, int event_byte_offset, Object errcode_ret, int errcode_ret_byte_offset, long getImageInfoAddress, long mapImageAddress)

Entry point to C language function: void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret);

public int
clReleaseContext(final long context)

Implements com.jogamp.opencl.llb.CLContextBinding.clReleaseContext.

Interface to C language function: cl_int {@native clReleaseContext}(cl_context context)
public native int
clReleaseContextImpl(long context, long global, long address)

Interface to C language function: int32_t {@native clReleaseContext}(cl_context context);

public int
clSetEventCallback(final long event, final int trigger, final CLEventCallback callback)

Implements com.jogamp.opencl.llb.CLEventBinding.clSetEventCallback.

Interface to C language function: int32_t {@native clSetEventCallback}(cl_event event, cl_int command_exec_callback_type, void (CL_CALLBACK *pfn_event_notify) (cl_event event, cl_int event_command_exec_status, void *user_data), void *user_data);
private native int
clSetEventCallback0(long event, int type, CLEventCallback cb, long address)

public int
clSetMemObjectDestructorCallback(final long memObjID, final CLMemObjectDestructorCallback cb)

Implements com.jogamp.opencl.llb.CLMemObjBinding.clSetMemObjectDestructorCallback.

Interface to C language function: int32_t {@native clSetMemObjectDestructorCallback}(cl_mem memobj, void (CL_CALLBACK *pfn_notify) (cl_mem memobj, void *user_data), void *user_data);
private native int
public CLProcAddressTable
Inherited from com.jogamp.opencl.llb.impl.CLAbstractImpl:
clCreateBufferclCreateBufferclCreateCommandQueueclCreateCommandQueueclCreateEventFromGLsyncKHRclCreateEventFromGLsyncKHRclCreateFromGLBufferclCreateFromGLBufferclCreateFromGLRenderbufferclCreateFromGLRenderbufferclCreateFromGLTexture2DclCreateFromGLTexture2DclCreateFromGLTexture3DclCreateFromGLTexture3DclCreateImage2DclCreateImage2DclCreateImage3DclCreateImage3DclCreateKernelclCreateKernelclCreateKernelsInProgramclCreateProgramWithBinaryclCreateProgramWithSourceclCreateSamplerclCreateSamplerclCreateSubBufferclCreateSubBufferclCreateSubDevicesEXTclCreateSubDevicesEXTclCreateUserEventclCreateUserEventclEnqueueAcquireGLObjectsclEnqueueBarrierclEnqueueCopyBufferclEnqueueCopyBufferRectclEnqueueCopyBufferToImageclEnqueueCopyImageclEnqueueCopyImageToBufferclEnqueueMapBufferclEnqueueMarkerclEnqueueMigrateMemObjectEXTclEnqueueNDRangeKernelclEnqueueReadBufferclEnqueueReadBufferRectclEnqueueReadImageclEnqueueReleaseGLObjectsclEnqueueTaskclEnqueueUnmapMemObjectclEnqueueWaitForEventsclEnqueueWriteBufferclEnqueueWriteBufferRectclEnqueueWriteImageclFinishclFlushclGetCommandQueueInfoclGetContextInfoclGetDeviceIDsclGetDeviceInfoclGetEventInfoclGetEventProfilingInfoclGetExtensionFunctionAddressclGetExtensionFunctionAddressclGetGLContextInfoKHRclGetGLObjectInfoclGetGLObjectInfoclGetGLTextureInfoclGetImageInfoclGetKernelInfoclGetKernelWorkGroupInfoclGetMemObjectInfoclGetPlatformIDsclGetPlatformInfoclGetProgramBuildInfoclGetProgramInfoclGetSamplerInfoclGetSupportedImageFormatsclGetSupportedImageFormatsclIcdGetPlatformIDsKHRclReleaseCommandQueueclReleaseDeviceEXTclReleaseEventclReleaseKernelclReleaseMemObjectclReleaseProgramclReleaseSamplerclRetainCommandQueueclRetainContextclRetainDeviceEXTclRetainEventclRetainKernelclRetainMemObjectclRetainProgramclRetainSamplerclSetKernelArgclSetUserEventStatusclUnloadCompilerclWaitForEventsgetCLProcAddressTableisAvailable

Field Detail

contextCallbackMapback to summary
private final LongLongHashMap contextCallbackMap

Constructor Detail

CLImplback to summary
public CLImpl()

Method Detail

clBuildProgramback to summary
public int clBuildProgram(final long program, final int deviceCount, final PointerBuffer deviceList, final String options, final BuildProgramCallback cb)

Implements com.jogamp.opencl.llb.CLProgramBinding.clBuildProgram.

Interface to C language function:
int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * );

Annotations
@Override
clBuildProgram0back to summary
private native int clBuildProgram0(long program, int deviceCount, Object deviceList, int deviceListOffset, String options, BuildProgramCallback cb, long address)

Entry point to C language function: int32_t clBuildProgram(cl_program, uint32_t, cl_device_id * , const char * , void * );

clCreateContextback to summary
public long clCreateContext(final PointerBuffer properties, final PointerBuffer devices, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLContextBinding.clCreateContext.

Doc from com.jogamp.opencl.llb.CLContextBinding.clCreateContext.

Interface to C language function:
cl_context {@native clCreateContext}(intptr_t * , uint32_t, cl_device_id * , void (*pfn_notify)(const char *, const void *, size_t, void *), void *, int32_t * );

Annotations
@Override
clCreateContext0back to summary
private native long clCreateContext0(Object cl_context_properties, int props_offset, int numDevices, Object devices, int devices_offset, Object pfn_notify, long[] global, Object errcode_ret, int err_offset, long address)
clCreateContextFromTypeback to summary
public long clCreateContextFromType(final PointerBuffer properties, final long device_type, final CLErrorHandler pfn_notify, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLContextBinding.clCreateContextFromType.

Doc from com.jogamp.opencl.llb.CLContextBinding.clCreateContextFromType.

Interface to C language function:
cl_context {@native clCreateContextFromType}(cl_context_properties *properties, cl_device_type device_type, void (*pfn_notify)(const char *errinfo, const void *private_info, size_t cb, void *user_data), void *user_data, cl_int *errcode_ret) ;

Annotations
@Override
clCreateContextFromType0back to summary
private native long clCreateContextFromType0(Object properties, int props_offset, long device_type, Object pfn_notify, long[] global, Object errcode_ret, int err_offset, long address)
clEnqueueMapImageback to summary
public ByteBuffer clEnqueueMapImage(final long command_queue, final long image, final int blocking_map, final long map_flags, final PointerBuffer origin, final PointerBuffer range, final PointerBuffer image_row_pitch, final PointerBuffer image_slice_pitch, final int num_events_in_wait_list, final PointerBuffer event_wait_list, final PointerBuffer event, final IntBuffer errcode_ret)

Implements com.jogamp.opencl.llb.CLCommandQueueBinding.clEnqueueMapImage.

Interface to C language function:
void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret);

Parameters
origin:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

range:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

image_row_pitch:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

image_slice_pitch:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

event_wait_list:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

event:PointerBuffer

a direct com.jogamp.common.nio.PointerBuffer

errcode_ret:IntBuffer

a direct java.nio.IntBuffer

Annotations
@Override
clEnqueueMapImage0back to summary
private native ByteBuffer clEnqueueMapImage0(long command_queue, long image, int blocking_map, long map_flags, Object origin, int origin_byte_offset, Object range, int range_byte_offset, Object image_row_pitch, int image_row_pitch_byte_offset, Object image_slice_pitch, int image_slice_pitch_byte_offset, int num_events_in_wait_list, Object event_wait_list, int event_wait_list_byte_offset, Object event, int event_byte_offset, Object errcode_ret, int errcode_ret_byte_offset, long getImageInfoAddress, long mapImageAddress)

Entry point to C language function: void * {@native clEnqueueMapImage}(cl_command_queue command_queue, cl_mem image, uint32_t blocking_map, uint64_t map_flags, const size_t * , const size_t * , size_t * image_row_pitch, size_t * image_slice_pitch, uint32_t num_events_in_wait_list, cl_event * event_wait_list, cl_event * event, int32_t * errcode_ret);

Parameters
origin:Object

a direct com.jogamp.common.nio.PointerBuffer

range:Object

a direct com.jogamp.common.nio.PointerBuffer

image_row_pitch:Object

a direct com.jogamp.common.nio.PointerBuffer

image_slice_pitch:Object

a direct com.jogamp.common.nio.PointerBuffer

event_wait_list:Object

a direct com.jogamp.common.nio.PointerBuffer

event:Object

a direct com.jogamp.common.nio.PointerBuffer

errcode_ret:Object

a direct java.nio.IntBuffer

clReleaseContextback to summary
public int clReleaseContext(final long context)

Implements com.jogamp.opencl.llb.CLContextBinding.clReleaseContext.

Doc from com.jogamp.opencl.llb.CLContextBinding.clReleaseContext.

Interface to C language function:
cl_int {@native clReleaseContext}(cl_context context)

Annotations
@Override
clReleaseContextImplback to summary
public native int clReleaseContextImpl(long context, long global, long address)

Interface to C language function:
int32_t {@native clReleaseContext}(cl_context context);

clSetEventCallbackback to summary
public int clSetEventCallback(final long event, final int trigger, final CLEventCallback callback)

Implements com.jogamp.opencl.llb.CLEventBinding.clSetEventCallback.

Doc from com.jogamp.opencl.llb.CLEventBinding.clSetEventCallback.

Interface to C language function:
int32_t {@native clSetEventCallback}(cl_event event, cl_int command_exec_callback_type, void (CL_CALLBACK *pfn_event_notify) (cl_event event, cl_int event_command_exec_status, void *user_data), void *user_data);

Annotations
@Override
clSetEventCallback0back to summary
private native int clSetEventCallback0(long event, int type, CLEventCallback cb, long address)
clSetMemObjectDestructorCallbackback to summary
public int clSetMemObjectDestructorCallback(final long memObjID, final CLMemObjectDestructorCallback cb)

Implements com.jogamp.opencl.llb.CLMemObjBinding.clSetMemObjectDestructorCallback.

Doc from com.jogamp.opencl.llb.CLMemObjBinding.clSetMemObjectDestructorCallback.

Interface to C language function:
int32_t {@native clSetMemObjectDestructorCallback}(cl_mem memobj, void (CL_CALLBACK *pfn_notify) (cl_mem memobj, void *user_data), void *user_data);

Annotations
@Override
clSetMemObjectDestructorCallback0back to summary
private native int clSetMemObjectDestructorCallback0(long memObjID, CLMemObjectDestructorCallback cb, long address)
getAddressTableback to summary
public CLProcAddressTable getAddressTable()