Class CL30
- java.lang.Object
-
public class CL30 extends CL22
The core OpenCL 3.0 functionality.
-
-
Field Summary
-
Fields inherited from class org.lwjgl.opencl.CL10
CL_A, CL_ADDRESS_CLAMP, CL_ADDRESS_CLAMP_TO_EDGE, CL_ADDRESS_NONE, CL_ADDRESS_REPEAT, CL_ARGB, CL_BGRA, CL_BUILD_ERROR, CL_BUILD_IN_PROGRESS, CL_BUILD_NONE, CL_BUILD_PROGRAM_FAILURE, CL_BUILD_SUCCESS, CL_COMMAND_ACQUIRE_GL_OBJECTS, CL_COMMAND_COPY_BUFFER, CL_COMMAND_COPY_BUFFER_TO_IMAGE, CL_COMMAND_COPY_IMAGE, CL_COMMAND_COPY_IMAGE_TO_BUFFER, CL_COMMAND_MAP_BUFFER, CL_COMMAND_MAP_IMAGE, CL_COMMAND_MARKER, CL_COMMAND_NATIVE_KERNEL, CL_COMMAND_NDRANGE_KERNEL, CL_COMMAND_READ_BUFFER, CL_COMMAND_READ_IMAGE, CL_COMMAND_RELEASE_GL_OBJECTS, CL_COMMAND_TASK, CL_COMMAND_UNMAP_MEM_OBJECT, CL_COMMAND_WRITE_BUFFER, CL_COMMAND_WRITE_IMAGE, CL_COMPILER_NOT_AVAILABLE, CL_COMPLETE, CL_CONTEXT_DEVICES, CL_CONTEXT_PLATFORM, CL_CONTEXT_PROPERTIES, CL_CONTEXT_REFERENCE_COUNT, CL_DEVICE_ADDRESS_BITS, CL_DEVICE_AVAILABLE, CL_DEVICE_COMPILER_AVAILABLE, CL_DEVICE_ENDIAN_LITTLE, CL_DEVICE_ERROR_CORRECTION_SUPPORT, CL_DEVICE_EXECUTION_CAPABILITIES, CL_DEVICE_EXTENSIONS, CL_DEVICE_GLOBAL_MEM_CACHE_SIZE, CL_DEVICE_GLOBAL_MEM_CACHE_TYPE, CL_DEVICE_GLOBAL_MEM_CACHELINE_SIZE, CL_DEVICE_GLOBAL_MEM_SIZE, CL_DEVICE_IMAGE_SUPPORT, CL_DEVICE_IMAGE2D_MAX_HEIGHT, CL_DEVICE_IMAGE2D_MAX_WIDTH, CL_DEVICE_IMAGE3D_MAX_DEPTH, CL_DEVICE_IMAGE3D_MAX_HEIGHT, CL_DEVICE_IMAGE3D_MAX_WIDTH, CL_DEVICE_LOCAL_MEM_SIZE, CL_DEVICE_LOCAL_MEM_TYPE, CL_DEVICE_MAX_CLOCK_FREQUENCY, CL_DEVICE_MAX_COMPUTE_UNITS, CL_DEVICE_MAX_CONSTANT_ARGS, CL_DEVICE_MAX_CONSTANT_BUFFER_SIZE, CL_DEVICE_MAX_MEM_ALLOC_SIZE, CL_DEVICE_MAX_PARAMETER_SIZE, CL_DEVICE_MAX_READ_IMAGE_ARGS, CL_DEVICE_MAX_SAMPLERS, CL_DEVICE_MAX_WORK_GROUP_SIZE, CL_DEVICE_MAX_WORK_ITEM_DIMENSIONS, CL_DEVICE_MAX_WORK_ITEM_SIZES, CL_DEVICE_MAX_WRITE_IMAGE_ARGS, CL_DEVICE_MEM_BASE_ADDR_ALIGN, CL_DEVICE_MIN_DATA_TYPE_ALIGN_SIZE, CL_DEVICE_NAME, CL_DEVICE_NOT_AVAILABLE, CL_DEVICE_NOT_FOUND, CL_DEVICE_PLATFORM, CL_DEVICE_PREFERRED_VECTOR_WIDTH_CHAR, CL_DEVICE_PREFERRED_VECTOR_WIDTH_DOUBLE, CL_DEVICE_PREFERRED_VECTOR_WIDTH_FLOAT, CL_DEVICE_PREFERRED_VECTOR_WIDTH_INT, CL_DEVICE_PREFERRED_VECTOR_WIDTH_LONG, CL_DEVICE_PREFERRED_VECTOR_WIDTH_SHORT, CL_DEVICE_PROFILE, CL_DEVICE_PROFILING_TIMER_RESOLUTION, CL_DEVICE_QUEUE_PROPERTIES, CL_DEVICE_SINGLE_FP_CONFIG, CL_DEVICE_TYPE, CL_DEVICE_TYPE_ACCELERATOR, CL_DEVICE_TYPE_ALL, CL_DEVICE_TYPE_CPU, CL_DEVICE_TYPE_DEFAULT, CL_DEVICE_TYPE_GPU, CL_DEVICE_VENDOR, CL_DEVICE_VENDOR_ID, CL_DEVICE_VERSION, CL_DRIVER_VERSION, CL_EVENT_COMMAND_EXECUTION_STATUS, CL_EVENT_COMMAND_QUEUE, CL_EVENT_COMMAND_TYPE, CL_EVENT_REFERENCE_COUNT, CL_EXEC_KERNEL, CL_EXEC_NATIVE_KERNEL, CL_FALSE, CL_FILTER_LINEAR, CL_FILTER_NEAREST, CL_FLOAT, CL_FP_DENORM, CL_FP_FMA, CL_FP_INF_NAN, CL_FP_ROUND_TO_INF, CL_FP_ROUND_TO_NEAREST, CL_FP_ROUND_TO_ZERO, CL_GLOBAL, CL_HALF_FLOAT, CL_IMAGE_DEPTH, CL_IMAGE_ELEMENT_SIZE, CL_IMAGE_FORMAT, CL_IMAGE_FORMAT_MISMATCH, CL_IMAGE_FORMAT_NOT_SUPPORTED, CL_IMAGE_HEIGHT, CL_IMAGE_ROW_PITCH, CL_IMAGE_SLICE_PITCH, CL_IMAGE_WIDTH, CL_INTENSITY, CL_INVALID_ARG_INDEX, CL_INVALID_ARG_SIZE, CL_INVALID_ARG_VALUE, CL_INVALID_BINARY, CL_INVALID_BUFFER_SIZE, CL_INVALID_BUILD_OPTIONS, CL_INVALID_COMMAND_QUEUE, CL_INVALID_CONTEXT, CL_INVALID_DEVICE, CL_INVALID_DEVICE_TYPE, CL_INVALID_EVENT, CL_INVALID_EVENT_WAIT_LIST, CL_INVALID_GLOBAL_OFFSET, CL_INVALID_GLOBAL_WORK_SIZE, CL_INVALID_HOST_PTR, CL_INVALID_IMAGE_FORMAT_DESCRIPTOR, CL_INVALID_IMAGE_SIZE, CL_INVALID_KERNEL, CL_INVALID_KERNEL_ARGS, CL_INVALID_KERNEL_DEFINITION, CL_INVALID_KERNEL_NAME, CL_INVALID_MEM_OBJECT, CL_INVALID_OPERATION, CL_INVALID_PLATFORM, CL_INVALID_PROGRAM, CL_INVALID_PROGRAM_EXECUTABLE, CL_INVALID_QUEUE_PROPERTIES, CL_INVALID_SAMPLER, CL_INVALID_VALUE, CL_INVALID_WORK_DIMENSION, CL_INVALID_WORK_GROUP_SIZE, CL_INVALID_WORK_ITEM_SIZE, CL_KERNEL_COMPILE_WORK_GROUP_SIZE, CL_KERNEL_CONTEXT, CL_KERNEL_FUNCTION_NAME, CL_KERNEL_LOCAL_MEM_SIZE, CL_KERNEL_NUM_ARGS, CL_KERNEL_PROGRAM, CL_KERNEL_REFERENCE_COUNT, CL_KERNEL_WORK_GROUP_SIZE, CL_LOCAL, CL_LUMINANCE, CL_MAP_FAILURE, CL_MAP_READ, CL_MAP_WRITE, CL_MEM_ALLOC_HOST_PTR, CL_MEM_CONTEXT, CL_MEM_COPY_HOST_PTR, CL_MEM_COPY_OVERLAP, CL_MEM_FLAGS, CL_MEM_HOST_PTR, CL_MEM_MAP_COUNT, CL_MEM_OBJECT_ALLOCATION_FAILURE, CL_MEM_OBJECT_BUFFER, CL_MEM_OBJECT_IMAGE2D, CL_MEM_OBJECT_IMAGE3D, CL_MEM_READ_ONLY, CL_MEM_READ_WRITE, CL_MEM_REFERENCE_COUNT, CL_MEM_SIZE, CL_MEM_TYPE, CL_MEM_USE_HOST_PTR, CL_MEM_WRITE_ONLY, CL_NONE, CL_OUT_OF_HOST_MEMORY, CL_OUT_OF_RESOURCES, CL_PLATFORM_EXTENSIONS, CL_PLATFORM_NAME, CL_PLATFORM_PROFILE, CL_PLATFORM_VENDOR, CL_PLATFORM_VERSION, CL_PROFILING_COMMAND_END, CL_PROFILING_COMMAND_QUEUED, CL_PROFILING_COMMAND_START, CL_PROFILING_COMMAND_SUBMIT, CL_PROFILING_INFO_NOT_AVAILABLE, CL_PROGRAM_BINARIES, CL_PROGRAM_BINARY_SIZES, CL_PROGRAM_BUILD_LOG, CL_PROGRAM_BUILD_OPTIONS, CL_PROGRAM_BUILD_STATUS, CL_PROGRAM_CONTEXT, CL_PROGRAM_DEVICES, CL_PROGRAM_NUM_DEVICES, CL_PROGRAM_REFERENCE_COUNT, CL_PROGRAM_SOURCE, CL_QUEUE_CONTEXT, CL_QUEUE_DEVICE, CL_QUEUE_OUT_OF_ORDER_EXEC_MODE_ENABLE, CL_QUEUE_PROFILING_ENABLE, CL_QUEUE_PROPERTIES, CL_QUEUE_REFERENCE_COUNT, CL_QUEUED, CL_R, CL_RA, CL_READ_ONLY_CACHE, CL_READ_WRITE_CACHE, CL_RG, CL_RGB, CL_RGBA, CL_RUNNING, CL_SAMPLER_ADDRESSING_MODE, CL_SAMPLER_CONTEXT, CL_SAMPLER_FILTER_MODE, CL_SAMPLER_NORMALIZED_COORDS, CL_SAMPLER_REFERENCE_COUNT, CL_SIGNED_INT16, CL_SIGNED_INT32, CL_SIGNED_INT8, CL_SNORM_INT16, CL_SNORM_INT8, CL_SUBMITTED, CL_SUCCESS, CL_TRUE, CL_UNORM_INT_101010, CL_UNORM_INT16, CL_UNORM_INT8, CL_UNORM_SHORT_555, CL_UNORM_SHORT_565, CL_UNSIGNED_INT16, CL_UNSIGNED_INT32, CL_UNSIGNED_INT8, CL_VERSION_1_0
-
Fields inherited from class org.lwjgl.opencl.CL11
CL_ADDRESS_MIRRORED_REPEAT, CL_BUFFER_CREATE_TYPE_REGION, CL_COMMAND_COPY_BUFFER_RECT, CL_COMMAND_READ_BUFFER_RECT, CL_COMMAND_USER, CL_COMMAND_WRITE_BUFFER_RECT, CL_CONTEXT_NUM_DEVICES, CL_DEVICE_HOST_UNIFIED_MEMORY, CL_DEVICE_NATIVE_VECTOR_WIDTH_CHAR, CL_DEVICE_NATIVE_VECTOR_WIDTH_DOUBLE, CL_DEVICE_NATIVE_VECTOR_WIDTH_FLOAT, CL_DEVICE_NATIVE_VECTOR_WIDTH_HALF, CL_DEVICE_NATIVE_VECTOR_WIDTH_INT, CL_DEVICE_NATIVE_VECTOR_WIDTH_LONG, CL_DEVICE_NATIVE_VECTOR_WIDTH_SHORT, CL_DEVICE_OPENCL_C_VERSION, CL_DEVICE_PREFERRED_VECTOR_WIDTH_HALF, CL_EVENT_CONTEXT, CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST, CL_FP_SOFT_FLOAT, CL_INVALID_PROPERTY, CL_KERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLE, CL_KERNEL_PRIVATE_MEM_SIZE, CL_MEM_ASSOCIATED_MEMOBJECT, CL_MEM_OFFSET, CL_MISALIGNED_SUB_BUFFER_OFFSET, CL_RGBx, CL_RGx, CL_Rx, CL_VERSION_1_1
-
Fields inherited from class org.lwjgl.opencl.CL12
CL_BLOCKING, CL_COMMAND_BARRIER, CL_COMMAND_FILL_BUFFER, CL_COMMAND_FILL_IMAGE, CL_COMMAND_MIGRATE_MEM_OBJECTS, CL_COMPILE_PROGRAM_FAILURE, CL_CONTEXT_INTEROP_USER_SYNC, CL_DEVICE_AFFINITY_DOMAIN_L1_CACHE, CL_DEVICE_AFFINITY_DOMAIN_L2_CACHE, CL_DEVICE_AFFINITY_DOMAIN_L3_CACHE, CL_DEVICE_AFFINITY_DOMAIN_L4_CACHE, CL_DEVICE_AFFINITY_DOMAIN_NEXT_PARTITIONABLE, CL_DEVICE_AFFINITY_DOMAIN_NUMA, CL_DEVICE_BUILT_IN_KERNELS, CL_DEVICE_DOUBLE_FP_CONFIG, CL_DEVICE_IMAGE_MAX_ARRAY_SIZE, CL_DEVICE_IMAGE_MAX_BUFFER_SIZE, CL_DEVICE_LINKER_AVAILABLE, CL_DEVICE_PARENT_DEVICE, CL_DEVICE_PARTITION_AFFINITY_DOMAIN, CL_DEVICE_PARTITION_BY_AFFINITY_DOMAIN, CL_DEVICE_PARTITION_BY_COUNTS, CL_DEVICE_PARTITION_BY_COUNTS_LIST_END, CL_DEVICE_PARTITION_EQUALLY, CL_DEVICE_PARTITION_FAILED, CL_DEVICE_PARTITION_MAX_SUB_DEVICES, CL_DEVICE_PARTITION_PROPERTIES, CL_DEVICE_PARTITION_TYPE, CL_DEVICE_PREFERRED_INTEROP_USER_SYNC, CL_DEVICE_PRINTF_BUFFER_SIZE, CL_DEVICE_REFERENCE_COUNT, CL_DEVICE_TYPE_CUSTOM, CL_FP_CORRECTLY_ROUNDED_DIVIDE_SQRT, CL_IMAGE_ARRAY_SIZE, CL_IMAGE_BUFFER, CL_IMAGE_NUM_MIP_LEVELS, CL_IMAGE_NUM_SAMPLES, CL_INVALID_COMPILER_OPTIONS, CL_INVALID_DEVICE_PARTITION_COUNT, CL_INVALID_IMAGE_DESCRIPTOR, CL_INVALID_LINKER_OPTIONS, CL_KERNEL_ARG_ACCESS_NONE, CL_KERNEL_ARG_ACCESS_QUALIFIER, CL_KERNEL_ARG_ACCESS_READ_ONLY, CL_KERNEL_ARG_ACCESS_READ_WRITE, CL_KERNEL_ARG_ACCESS_WRITE_ONLY, CL_KERNEL_ARG_ADDRESS_CONSTANT, CL_KERNEL_ARG_ADDRESS_GLOBAL, CL_KERNEL_ARG_ADDRESS_LOCAL, CL_KERNEL_ARG_ADDRESS_PRIVATE, CL_KERNEL_ARG_ADDRESS_QUALIFIER, CL_KERNEL_ARG_INFO_NOT_AVAILABLE, CL_KERNEL_ARG_NAME, CL_KERNEL_ARG_TYPE_CONST, CL_KERNEL_ARG_TYPE_NAME, CL_KERNEL_ARG_TYPE_NONE, CL_KERNEL_ARG_TYPE_QUALIFIER, CL_KERNEL_ARG_TYPE_RESTRICT, CL_KERNEL_ARG_TYPE_VOLATILE, CL_KERNEL_ATTRIBUTES, CL_KERNEL_GLOBAL_WORK_SIZE, CL_LINK_PROGRAM_FAILURE, CL_LINKER_NOT_AVAILABLE, CL_MAP_WRITE_INVALIDATE_REGION, CL_MEM_HOST_NO_ACCESS, CL_MEM_HOST_READ_ONLY, CL_MEM_HOST_WRITE_ONLY, CL_MEM_OBJECT_IMAGE1D, CL_MEM_OBJECT_IMAGE1D_ARRAY, CL_MEM_OBJECT_IMAGE1D_BUFFER, CL_MEM_OBJECT_IMAGE2D_ARRAY, CL_MIGRATE_MEM_OBJECT_CONTENT_UNDEFINED, CL_MIGRATE_MEM_OBJECT_HOST, CL_NON_BLOCKING, CL_PROGRAM_BINARY_TYPE, CL_PROGRAM_BINARY_TYPE_COMPILED_OBJECT, CL_PROGRAM_BINARY_TYPE_EXECUTABLE, CL_PROGRAM_BINARY_TYPE_LIBRARY, CL_PROGRAM_BINARY_TYPE_NONE, CL_PROGRAM_KERNEL_NAMES, CL_PROGRAM_NUM_KERNELS, CL_VERSION_1_2
-
Fields inherited from class org.lwjgl.opencl.CL20
CL_ABGR, CL_COMMAND_SVM_FREE, CL_COMMAND_SVM_MAP, CL_COMMAND_SVM_MEMCPY, CL_COMMAND_SVM_MEMFILL, CL_COMMAND_SVM_UNMAP, CL_DEVICE_GLOBAL_VARIABLE_PREFERRED_TOTAL_SIZE, CL_DEVICE_IMAGE_BASE_ADDRESS_ALIGNMENT, CL_DEVICE_IMAGE_PITCH_ALIGNMENT, CL_DEVICE_MAX_GLOBAL_VARIABLE_SIZE, CL_DEVICE_MAX_ON_DEVICE_EVENTS, CL_DEVICE_MAX_ON_DEVICE_QUEUES, CL_DEVICE_MAX_PIPE_ARGS, CL_DEVICE_MAX_READ_WRITE_IMAGE_ARGS, CL_DEVICE_PIPE_MAX_ACTIVE_RESERVATIONS, CL_DEVICE_PIPE_MAX_PACKET_SIZE, CL_DEVICE_PREFERRED_GLOBAL_ATOMIC_ALIGNMENT, CL_DEVICE_PREFERRED_LOCAL_ATOMIC_ALIGNMENT, CL_DEVICE_PREFERRED_PLATFORM_ATOMIC_ALIGNMENT, CL_DEVICE_QUEUE_ON_DEVICE_MAX_SIZE, CL_DEVICE_QUEUE_ON_DEVICE_PREFERRED_SIZE, CL_DEVICE_QUEUE_ON_DEVICE_PROPERTIES, CL_DEVICE_QUEUE_ON_HOST_PROPERTIES, CL_DEVICE_SVM_ATOMICS, CL_DEVICE_SVM_CAPABILITIES, CL_DEVICE_SVM_COARSE_GRAIN_BUFFER, CL_DEVICE_SVM_FINE_GRAIN_BUFFER, CL_DEVICE_SVM_FINE_GRAIN_SYSTEM, CL_INVALID_DEVICE_QUEUE, CL_INVALID_PIPE_SIZE, CL_KERNEL_ARG_TYPE_PIPE, CL_KERNEL_EXEC_INFO_SVM_FINE_GRAIN_SYSTEM, CL_KERNEL_EXEC_INFO_SVM_PTRS, CL_MEM_KERNEL_READ_AND_WRITE, CL_MEM_OBJECT_PIPE, CL_MEM_SVM_ATOMICS, CL_MEM_SVM_FINE_GRAIN_BUFFER, CL_MEM_USES_SVM_POINTER, CL_PIPE_MAX_PACKETS, CL_PIPE_PACKET_SIZE, CL_PROFILING_COMMAND_COMPLETE, CL_PROGRAM_BUILD_GLOBAL_VARIABLE_TOTAL_SIZE, CL_QUEUE_ON_DEVICE, CL_QUEUE_ON_DEVICE_DEFAULT, CL_QUEUE_SIZE, CL_SAMPLER_LOD_MAX, CL_SAMPLER_LOD_MIN, CL_SAMPLER_MIP_FILTER_MODE, CL_sBGRA, CL_sRGB, CL_sRGBA, CL_sRGBx, CL_VERSION_2_0
-
Fields inherited from class org.lwjgl.opencl.CL21
CL_DEVICE_IL_VERSION, CL_DEVICE_MAX_NUM_SUB_GROUPS, CL_DEVICE_SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS, CL_KERNEL_COMPILE_NUM_SUB_GROUPS, CL_KERNEL_LOCAL_SIZE_FOR_SUB_GROUP_COUNT, CL_KERNEL_MAX_NUM_SUB_GROUPS, CL_KERNEL_MAX_SUB_GROUP_SIZE_FOR_NDRANGE, CL_KERNEL_SUB_GROUP_COUNT_FOR_NDRANGE, CL_PLATFORM_HOST_TIMER_RESOLUTION, CL_PROGRAM_IL, CL_QUEUE_DEVICE_DEFAULT, CL_UNORM_INT_101010_2, CL_VERSION_2_1
-
Fields inherited from class org.lwjgl.opencl.CL22
CL_INVALID_SPEC_ID, CL_MAX_SIZE_RESTRICTION_EXCEEDED, CL_PROGRAM_SCOPE_GLOBAL_CTORS_PRESENT, CL_PROGRAM_SCOPE_GLOBAL_DTORS_PRESENT, CL_VERSION_2_2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intCL_MAKE_VERSION(int major, int minor, int patch)Returns a packedcl_versionfrom a major, minor and patch version.static intCL_VERSION_MAJOR(int version)Extracts themajorversion from a packedcl_version.static intCL_VERSION_MINOR(int version)Extracts theminorversion from a packedcl_version.static intCL_VERSION_PATCH(int version)Extracts thepatchversion from a packedcl_version.static longclCreateBufferWithProperties(long context, long[] properties, long flags, double[] host_ptr, int[] errcode_ret)Array version of:CreateBufferWithPropertiesstatic longclCreateBufferWithProperties(long context, long[] properties, long flags, float[] host_ptr, int[] errcode_ret)Array version of:CreateBufferWithPropertiesstatic longclCreateBufferWithProperties(long context, long[] properties, long flags, int[] host_ptr, int[] errcode_ret)Array version of:CreateBufferWithPropertiesstatic longclCreateBufferWithProperties(long context, long[] properties, long flags, short[] host_ptr, int[] errcode_ret)Array version of:CreateBufferWithPropertiesstatic longclCreateBufferWithProperties(long context, long[] properties, long flags, java.nio.ByteBuffer host_ptr, int[] errcode_ret)Array version of:CreateBufferWithPropertiesstatic longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, long size, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, java.nio.ByteBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, java.nio.DoubleBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, java.nio.FloatBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, java.nio.IntBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateBufferWithProperties(long context, java.nio.LongBuffer properties, long flags, java.nio.ShortBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.static longclCreateImageWithProperties(long context, long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, float[] host_ptr, int[] errcode_ret)Array version of:CreateImageWithPropertiesstatic longclCreateImageWithProperties(long context, long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, int[] host_ptr, int[] errcode_ret)Array version of:CreateImageWithPropertiesstatic longclCreateImageWithProperties(long context, long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, short[] host_ptr, int[] errcode_ret)Array version of:CreateImageWithPropertiesstatic longclCreateImageWithProperties(long context, long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, java.nio.ByteBuffer host_ptr, int[] errcode_ret)Array version of:CreateImageWithPropertiesstatic longclCreateImageWithProperties(long context, java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, java.nio.ByteBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates an image object with additional properties.static longclCreateImageWithProperties(long context, java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, java.nio.FloatBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates an image object with additional properties.static longclCreateImageWithProperties(long context, java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, java.nio.IntBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates an image object with additional properties.static longclCreateImageWithProperties(long context, java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, java.nio.ShortBuffer host_ptr, java.nio.IntBuffer errcode_ret)Creates an image object with additional properties.static intclSetContextDestructorCallback(long context, CLContextDestructorCallbackI pfn_notify, long user_data)Registers a callback function with a context that is called when the context is destroyed.static longnclCreateBufferWithProperties(long context, long properties, long flags, long size, long host_ptr, long errcode_ret)Unsafe version of:CreateBufferWithPropertiesstatic longnclCreateImageWithProperties(long context, long properties, long flags, long image_format, long image_desc, long host_ptr, long errcode_ret)Unsafe version of:CreateImageWithPropertiesstatic intnclSetContextDestructorCallback(long context, long pfn_notify, long user_data)Unsafe version of:SetContextDestructorCallback-
Methods inherited from class org.lwjgl.opencl.CL10
clBuildProgram, clBuildProgram, clBuildProgram, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateBuffer, clCreateCommandQueue, clCreateCommandQueue, clCreateContext, clCreateContext, clCreateContext, clCreateContextFromType, clCreateContextFromType, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage2D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateImage3D, clCreateKernel, clCreateKernel, clCreateKernel, clCreateKernel, clCreateKernelsInProgram, clCreateKernelsInProgram, clCreateProgramWithBinary, clCreateProgramWithBinary, clCreateProgramWithBinary, clCreateProgramWithBinary, clCreateProgramWithSource, clCreateProgramWithSource, clCreateProgramWithSource, clCreateProgramWithSource, clCreateSampler, clCreateSampler, clEnqueueBarrier, clEnqueueCopyBuffer, clEnqueueCopyBufferToImage, clEnqueueCopyImage, clEnqueueCopyImageToBuffer, clEnqueueMapBuffer, clEnqueueMapBuffer, clEnqueueMapImage, clEnqueueMapImage, clEnqueueMapImage, clEnqueueMapImage, clEnqueueMarker, clEnqueueNativeKernel, clEnqueueNativeKernel, clEnqueueNDRangeKernel, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadBuffer, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueReadImage, clEnqueueTask, clEnqueueUnmapMemObject, clEnqueueWaitForEvents, clEnqueueWaitForEvents, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteBuffer, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clEnqueueWriteImage, clFinish, clFlush, clGetCommandQueueInfo, clGetCommandQueueInfo, clGetCommandQueueInfo, clGetCommandQueueInfo, clGetCommandQueueInfo, clGetCommandQueueInfo, clGetContextInfo, clGetContextInfo, clGetContextInfo, clGetContextInfo, clGetDeviceIDs, clGetDeviceIDs, clGetDeviceInfo, clGetDeviceInfo, clGetDeviceInfo, clGetDeviceInfo, clGetDeviceInfo, clGetDeviceInfo, clGetEventInfo, clGetEventInfo, clGetEventInfo, clGetEventInfo, clGetEventProfilingInfo, clGetEventProfilingInfo, clGetEventProfilingInfo, clGetExtensionFunctionAddress, clGetExtensionFunctionAddress, clGetImageInfo, clGetImageInfo, clGetImageInfo, clGetImageInfo, clGetKernelInfo, clGetKernelInfo, clGetKernelInfo, clGetKernelInfo, clGetKernelWorkGroupInfo, clGetKernelWorkGroupInfo, clGetKernelWorkGroupInfo, clGetKernelWorkGroupInfo, clGetKernelWorkGroupInfo, clGetKernelWorkGroupInfo, clGetMemObjectInfo, clGetMemObjectInfo, clGetMemObjectInfo, clGetMemObjectInfo, clGetMemObjectInfo, clGetMemObjectInfo, clGetPlatformIDs, clGetPlatformIDs, clGetPlatformInfo, clGetPlatformInfo, clGetPlatformInfo, clGetProgramBuildInfo, clGetProgramBuildInfo, clGetProgramBuildInfo, clGetProgramBuildInfo, clGetProgramInfo, clGetProgramInfo, clGetProgramInfo, clGetProgramInfo, clGetSamplerInfo, clGetSamplerInfo, clGetSamplerInfo, clGetSamplerInfo, clGetSupportedImageFormats, clGetSupportedImageFormats, clReleaseCommandQueue, clReleaseContext, clReleaseEvent, clReleaseKernel, clReleaseMemObject, clReleaseProgram, clReleaseSampler, clRetainCommandQueue, clRetainContext, clRetainEvent, clRetainKernel, clRetainMemObject, clRetainProgram, clRetainSampler, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg, clSetKernelArg1b, clSetKernelArg1d, clSetKernelArg1f, clSetKernelArg1i, clSetKernelArg1l, clSetKernelArg1p, clSetKernelArg1s, clSetKernelArg2b, clSetKernelArg2d, clSetKernelArg2f, clSetKernelArg2i, clSetKernelArg2l, clSetKernelArg2p, clSetKernelArg2s, clSetKernelArg4b, clSetKernelArg4d, clSetKernelArg4f, clSetKernelArg4i, clSetKernelArg4l, clSetKernelArg4p, clSetKernelArg4s, clUnloadCompiler, clWaitForEvents, clWaitForEvents, nclBuildProgram, nclCreateBuffer, nclCreateCommandQueue, nclCreateContext, nclCreateContextFromType, nclCreateImage2D, nclCreateImage3D, nclCreateKernel, nclCreateKernelsInProgram, nclCreateProgramWithBinary, nclCreateProgramWithSource, nclCreateSampler, nclEnqueueCopyBuffer, nclEnqueueCopyBufferToImage, nclEnqueueCopyImage, nclEnqueueCopyImageToBuffer, nclEnqueueMapBuffer, nclEnqueueMapImage, nclEnqueueMarker, nclEnqueueNativeKernel, nclEnqueueNDRangeKernel, nclEnqueueReadBuffer, nclEnqueueReadImage, nclEnqueueTask, nclEnqueueUnmapMemObject, nclEnqueueWaitForEvents, nclEnqueueWriteBuffer, nclEnqueueWriteImage, nclGetCommandQueueInfo, nclGetContextInfo, nclGetDeviceIDs, nclGetDeviceInfo, nclGetEventInfo, nclGetEventProfilingInfo, nclGetExtensionFunctionAddress, nclGetImageInfo, nclGetKernelInfo, nclGetKernelWorkGroupInfo, nclGetMemObjectInfo, nclGetPlatformIDs, nclGetPlatformInfo, nclGetProgramBuildInfo, nclGetProgramInfo, nclGetSamplerInfo, nclGetSupportedImageFormats, nclSetKernelArg, nclWaitForEvents
-
Methods inherited from class org.lwjgl.opencl.CL11
clCreateSubBuffer, clCreateSubBuffer, clCreateUserEvent, clCreateUserEvent, clEnqueueCopyBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueReadBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clEnqueueWriteBufferRect, clSetEventCallback, clSetMemObjectDestructorCallback, clSetUserEventStatus, nclCreateSubBuffer, nclCreateUserEvent, nclEnqueueCopyBufferRect, nclEnqueueReadBufferRect, nclEnqueueWriteBufferRect, nclSetEventCallback, nclSetMemObjectDestructorCallback
-
Methods inherited from class org.lwjgl.opencl.CL12
clCompileProgram, clCompileProgram, clCreateImage, clCreateImage, clCreateImage, clCreateImage, clCreateImage, clCreateImage, clCreateImage, clCreateImage, clCreateProgramWithBuiltInKernels, clCreateProgramWithBuiltInKernels, clCreateProgramWithBuiltInKernels, clCreateProgramWithBuiltInKernels, clCreateProgramWithBuiltInKernels, clCreateSubDevices, clCreateSubDevices, clEnqueueBarrierWithWaitList, clEnqueueFillBuffer, clEnqueueFillImage, clEnqueueFillImage, clEnqueueFillImage, clEnqueueFillImage, clEnqueueFillImage, clEnqueueMarkerWithWaitList, clEnqueueMigrateMemObjects, clGetExtensionFunctionAddressForPlatform, clGetExtensionFunctionAddressForPlatform, clGetKernelArgInfo, clGetKernelArgInfo, clGetKernelArgInfo, clGetKernelArgInfo, clGetKernelArgInfo, clLinkProgram, clLinkProgram, clLinkProgram, clLinkProgram, clLinkProgram, clReleaseDevice, clRetainDevice, clUnloadPlatformCompiler, nclCompileProgram, nclCreateImage, nclCreateProgramWithBuiltInKernels, nclCreateSubDevices, nclEnqueueBarrierWithWaitList, nclEnqueueFillBuffer, nclEnqueueFillImage, nclEnqueueMarkerWithWaitList, nclEnqueueMigrateMemObjects, nclGetExtensionFunctionAddressForPlatform, nclGetKernelArgInfo, nclLinkProgram
-
Methods inherited from class org.lwjgl.opencl.CL20
clCreateCommandQueueWithProperties, clCreateCommandQueueWithProperties, clCreatePipe, clCreatePipe, clCreateSamplerWithProperties, clCreateSamplerWithProperties, clEnqueueSVMFree, clEnqueueSVMMap, clEnqueueSVMMemcpy, clEnqueueSVMMemFill, clEnqueueSVMUnmap, clGetPipeInfo, clGetPipeInfo, clGetPipeInfo, clSetKernelArgSVMPointer, clSetKernelExecInfo, clSetKernelExecInfo, clSetKernelExecInfo, clSetKernelExecInfo, clSVMAlloc, clSVMFree, nclCreateCommandQueueWithProperties, nclCreatePipe, nclCreateSamplerWithProperties, nclEnqueueSVMFree, nclEnqueueSVMMap, nclEnqueueSVMMemcpy, nclEnqueueSVMMemFill, nclEnqueueSVMUnmap, nclGetPipeInfo, nclSetKernelArgSVMPointer, nclSetKernelExecInfo, nclSVMAlloc, nclSVMFree
-
Methods inherited from class org.lwjgl.opencl.CL21
clCloneKernel, clCloneKernel, clCreateProgramWithIL, clCreateProgramWithIL, clEnqueueSVMMigrateMem, clGetDeviceAndHostTimer, clGetDeviceAndHostTimer, clGetHostTimer, clGetHostTimer, clGetKernelSubGroupInfo, clGetKernelSubGroupInfo, clSetDefaultDeviceCommandQueue, nclCloneKernel, nclCreateProgramWithIL, nclEnqueueSVMMigrateMem, nclGetDeviceAndHostTimer, nclGetHostTimer, nclGetKernelSubGroupInfo
-
Methods inherited from class org.lwjgl.opencl.CL22
clSetProgramReleaseCallback, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, clSetProgramSpecializationConstant, nclSetProgramReleaseCallback, nclSetProgramSpecializationConstant
-
-
-
-
Field Detail
-
CL_VERSION_3_0
OpenCL Version.
-
CL_PLATFORM_NUMERIC_VERSION
Accepted as theparam_nameparameter ofGetPlatformInfo, returns acl_versionvalue.Returns the detailed (major, minor, patch) version supported by the platform. The major and minor version numbers returned must match those returned via
PLATFORM_VERSION.
-
CL_PLATFORM_EXTENSIONS_WITH_VERSION
Accepted as theparam_nameparameter ofGetPlatformInfo, returns acl_name_version[]value.Returns an array of description (name and version) structures that lists all the extensions supported by the platform. The same extension name must not be reported more than once. The list of extensions reported must match the list reported via
PLATFORM_EXTENSIONS.
-
CL_DEVICE_NUMERIC_VERSION
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_versionvalue.Returns the detailed (major, minor, patch) version supported by the device. The major and minor version numbers returned must match those returned via
DEVICE_VERSION.
-
CL_DEVICE_EXTENSIONS_WITH_VERSION
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_name_version[]value.Returns an array of description (name and version) structures. The same extension name must not be reported more than once. The list of extensions reported must match the list reported via
DEVICE_EXTENSIONS. SeeCL_DEVICE_EXTENSIONSfor a list of extensions that are required to be reported for a given OpenCL version.
-
CL_DEVICE_ILS_WITH_VERSION
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_name_version[]value.Returns an array of descriptions (name and version) for all supported intermediate languages. Intermediate languages with the same name may be reported more than once but each name and major/minor version combination may only be reported once. The list of intermediate languages reported must match the list reported via
DEVICE_IL_VERSION.For an OpenCL 2.1 or 2.2 device, at least one version of SPIR-V must be reported.
-
CL_DEVICE_BUILT_IN_KERNELS_WITH_VERSION
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_name_version[]value.Returns an array of descriptions for the built-in kernels supported by the device. Each built-in kernel may only be reported once. The list of reported kernels must match the list returned via
DEVICE_BUILT_IN_KERNELS.
-
CL_DEVICE_ATOMIC_MEMORY_CAPABILITIES
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_device_atomic_capabilitiesvalue.Describes the various memory orders and scopes that the device supports for atomic memory operations. This is a bit-field that describes a combination of the following values:
DEVICE_ATOMIC_ORDER_RELAXED- Support for the relaxed memory order.DEVICE_ATOMIC_ORDER_ACQ_REL- Support for the acquire, release, and acquire-release memory orders.DEVICE_ATOMIC_ORDER_SEQ_CST- Support for the sequentially consistent memory order.
Because atomic memory orders are hierarchical, a device that supports a strong memory order must also support all weaker memory orders.
DEVICE_ATOMIC_SCOPE_WORK_ITEM- Support for memory ordering constraints that apply to a single work item.DEVICE_ATOMIC_SCOPE_WORK_GROUP- Support for memory ordering constraints that apply to all work-items in a work-group.DEVICE_ATOMIC_SCOPE_DEVICE- Support for memory ordering constraints that apply to all work-items executing on the device.DEVICE_ATOMIC_SCOPE_ALL_DEVICES- Support for memory ordering constraints that apply to all work-items executing across all devices that can share SVM memory with each other and the host process.
Because atomic scopes are hierarchical, a device that supports a wide scope must also support all narrower scopes, except for the work-item scope, which is a special case.
The mandated minimum capability is:
CL_DEVICE_ATOMIC_ORDER_RELAXED | CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP
-
CL_DEVICE_ATOMIC_FENCE_CAPABILITIES
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_device_atomic_capabilitiesvalue.Describes the various memory orders and scopes that the device supports for atomic fence operations. This is a bit-field that has the same set of possible values as described for
DEVICE_ATOMIC_MEMORY_CAPABILITIES.The mandated minimum capability is:
CL_DEVICE_ATOMIC_ORDER_RELAXED | CL_DEVICE_ATOMIC_ORDER_ACQ_REL | CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP
-
CL_DEVICE_NON_UNIFORM_WORK_GROUP_SUPPORT
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_boolvalue.Is
TRUEif the device supports non-uniform work groups, andFALSEotherwise.
-
CL_DEVICE_OPENCL_C_ALL_VERSIONS
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_name_version[]value.Returns an array of name, version descriptions listing all the versions of OpenCL C supported by the compiler for the device. In each returned description structure, the name field is required to be "OpenCL C". The list may include both newer non-backwards compatible OpenCL C versions, such as OpenCL C 3.0, and older OpenCL C versions with mandatory backwards compatibility. The version returned by
DEVICE_OPENCL_C_VERSIONis required to be present in the list.For devices that support compilation from OpenCL C source:
Because OpenCL 3.0 is backwards compatible with OpenCL C 1.2, and OpenCL C 1.2 is backwards compatible with OpenCL C 1.1 and OpenCL C 1.0, support for at least OpenCL C 3.0, OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 3.0 device.
Support for OpenCL C 2.0, OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 2.0, OpenCL 2.1, or OpenCL 2.2 device.
Support for OpenCL C 1.2, OpenCL C 1.1, and OpenCL C 1.0 is required for an OpenCL 1.2 device.
Support for OpenCL C 1.1 and OpenCL C 1.0 is required for an OpenCL 1.1 device.
Support for at least OpenCL C 1.0 is required for an OpenCL 1.0 device.
For devices that do not support compilation from OpenCL C source, this query may return an empty array.
-
CL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLE
Accepted as theparam_nameparameter ofGetDeviceInfo, returns asize_tvalue.Returns the preferred multiple of work-group size for the given device. This is a performance hint intended as a guide when specifying the local work size argument to
EnqueueNDRangeKernel.(Refer also to
GetKernelWorkGroupInfowhereKERNEL_PREFERRED_WORK_GROUP_SIZE_MULTIPLEcan return a different value toCL_DEVICE_PREFERRED_WORK_GROUP_SIZE_MULTIPLEwhich may be more optimal.)
-
CL_DEVICE_WORK_GROUP_COLLECTIVE_FUNCTIONS_SUPPORT
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_boolvalue.Is
TRUEif the device supports work group collective functions e.g.work_group_broadcast,work_group_reduce, andwork_group_scan, andFALSEotherwise.
-
CL_DEVICE_GENERIC_ADDRESS_SPACE_SUPPORT
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_boolvalue.Is
TRUEif the device supports the generic address space and its associated built-in functions, andFALSEotherwise.
-
CL_DEVICE_OPENCL_C_FEATURES
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_name_version[]value.Returns an array of optional OpenCL C features supported by the compiler for the device alongside the OpenCL C version that introduced the feature macro. For example, if a compiler supports an OpenCL C 3.0 feature, the returned name will be the full name of the OpenCL C feature macro, and the returned version will be 3.0.0.
For devices that do not support compilation from OpenCL C source, this query may return an empty array.
-
CL_DEVICE_DEVICE_ENQUEUE_CAPABILITIES
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_device_device_enqueue_capabilitiesvalue.Describes device-side enqueue capabilities of the device. This is a bit-field that describes one or more of the following values:
DEVICE_QUEUE_SUPPORTED- Device supports device-side enqueue and on-device queues.DEVICE_QUEUE_REPLACEABLE_DEFAULT- Device supports a replaceable default on-device queue.
If
CL_DEVICE_QUEUE_REPLACEABLE_DEFAULTis set,CL_DEVICE_QUEUE_SUPPORTEDmust also be set.Devices that set
CL_DEVICE_QUEUE_SUPPORTEDforCL_DEVICE_DEVICE_ENQUEUE_CAPABILITIESmust also returnTRUEforDEVICE_GENERIC_ADDRESS_SPACE_SUPPORT.
-
CL_DEVICE_PIPE_SUPPORT
Accepted as theparam_nameparameter ofGetDeviceInfo, returns acl_boolvalue.Is
TRUEif the device supports pipes, and CL_FALSE otherwise.Devices that return
TRUEforCL_DEVICE_PIPE_SUPPORTmust also returnCL_TRUEforDEVICE_GENERIC_ADDRESS_SPACE_SUPPORT.
-
CL_DEVICE_LATEST_CONFORMANCE_VERSION_PASSED
Accepted as theparam_nameparameter ofGetDeviceInfo, returns achar[]value.Returns the latest version of the conformance test suite that this device has fully passed in accordance with the official conformance process.
-
CL_QUEUE_PROPERTIES_ARRAY
Accepted as theparam_nameparameter ofGetCommandQueueInfo, returns acl_queue_properties[]value.Return the properties argument specified in
CreateCommandQueueWithProperties.If the properties argument specified in
clCreateCommandQueueWithPropertiesused to createcommand_queuewas notNULL, the implementation must return the values specified in the properties argument in the same order and without including additional properties.If
command_queuewas created usingCreateCommandQueue, or if the properties argument specified inclCreateCommandQueueWithPropertieswasNULL, the implementation must returnparam_value_size_retequal to 0, indicating that there are no properties to be returned.
-
CL_MEM_PROPERTIES
Accepted as theparam_nameparameter ofGetMemObjectInfo, returns acl_mem_properties[]value.Return the
propertiesargument specified inCreateBufferWithPropertiesorCreateImageWithProperties.If the
propertiesargument specified inclCreateBufferWithPropertiesorclCreateImageWithPropertiesused to creatememobjwas notNULL, the implementation must return the values specified in thepropertiesargument in the same order and without including additional properties.If
memobjwas created usingCreateBuffer,CreateSubBuffer,CreateImage,CreateImage2D, orCreateImage3D, or if thepropertiesargument specified inclCreateBufferWithPropertiesorclCreateImageWithPropertieswasNULL, the implementation must returnparam_value_size_retequal to 0, indicating that there are no properties to be returned.
-
CL_PIPE_PROPERTIES
Accepted as theparam_nameparameter ofGetPipeInfo, returns acl_pipe_properties[]value.Return the
propertiesargument specified inCreatePipe.If the
propertiesargument specified inclCreatePipeused to create pipe was notNULL, the implementation must return the values specified in thepropertiesargument in the same order and without including additional properties.If the
propertiesargument specified inclCreatePipeused to create pipe wasNULL, the implementation must returnparam_value_size_retequal to 0, indicating that there are no properties to be returned.
-
CL_SAMPLER_PROPERTIES
Accepted as theparam_nameparameter ofGetSamplerInfo, returns acl_sampler_properties[]value.Return the
propertiesargument specified inCreateSamplerWithProperties.If the
propertiesargument specified inclCreateSamplerWithPropertiesused to create sampler was notNULL, the implementation must return the values specified in thepropertiesargument in the same order and without including additional properties.If
samplerwas created usingCreateSampler, or if thepropertiesargument specified inclCreateSamplerWithPropertieswasNULL, the implementation must returnparam_value_size_retequal to 0, indicating that there are no properties to be returned.
-
CL_COMMAND_SVM_MIGRATE_MEM
cl_command_type
-
CL_DEVICE_ATOMIC_ORDER_RELAXED, CL_DEVICE_ATOMIC_ORDER_ACQ_REL, CL_DEVICE_ATOMIC_ORDER_SEQ_CST, CL_DEVICE_ATOMIC_SCOPE_WORK_ITEM, CL_DEVICE_ATOMIC_SCOPE_WORK_GROUP, CL_DEVICE_ATOMIC_SCOPE_DEVICE, CL_DEVICE_ATOMIC_SCOPE_ALL_DEVICES
cl_device_atomic_capabilities- bitfield
-
CL_DEVICE_QUEUE_SUPPORTED, CL_DEVICE_QUEUE_REPLACEABLE_DEFAULT
cl_device_device_enqueue_capabilities- bitfield
-
-
Method Detail
-
CL_VERSION_MAJOR
public static int CL_VERSION_MAJOR(int version)
Extracts themajorversion from a packedcl_version.- Parameters:
version- a packedcl_version- See Also:
- Reference Page
-
CL_VERSION_MINOR
public static int CL_VERSION_MINOR(int version)
Extracts theminorversion from a packedcl_version.- Parameters:
version- a packedcl_version- See Also:
- Reference Page
-
CL_VERSION_PATCH
public static int CL_VERSION_PATCH(int version)
Extracts thepatchversion from a packedcl_version.- Parameters:
version- a packedcl_version- See Also:
- Reference Page
-
CL_MAKE_VERSION
public static int CL_MAKE_VERSION(int major, int minor, int patch)Returns a packedcl_versionfrom a major, minor and patch version.- Parameters:
major- the major versionminor- the minor versionpatch- the patch version- See Also:
- Reference Page
-
nclSetContextDestructorCallback
public static int nclSetContextDestructorCallback(long context, long pfn_notify, long user_data)Unsafe version of:SetContextDestructorCallback
-
clSetContextDestructorCallback
public static int clSetContextDestructorCallback(long context, CLContextDestructorCallbackI pfn_notify, long user_data)Registers a callback function with a context that is called when the context is destroyed.Each call to
clSetContextDestructorCallbackregisters the specified callback function on a destructor callback stack associated with context. The registered callback functions are called in the reverse order in which they were registered. If a context callback function was specified when context was created, it will not be called after any context destructor callback is called. Therefore, the context destructor callback provides a mechanism for an application to safely re-use or free anyuser_dataspecified for the context callback function when context was created.- Parameters:
context- specifies the OpenCL context to register the callback topfn_notify- the callback function to register.This callback function may be called asynchronously by the OpenCL implementation. It is the application’s responsibility to ensure that the callback function is thread-safe.
user_data- will be passed as theuser_dataargument whenpfn_notifyis called.user_datacan beNULL.- Returns:
SUCCESSif the function is executed successfully. Otherwise, it returns one of the following errors:INVALID_CONTEXTifcontextis not a valid context.INVALID_VALUEifpfn_notifyisNULL.OUT_OF_RESOURCESif there is a failure to allocate resources required by the OpenCL implementation on the device.OUT_OF_HOST_MEMORYif there is a failure to allocate resources required by the OpenCL implementation on the host.
- See Also:
- Reference Page
-
nclCreateBufferWithProperties
public static long nclCreateBufferWithProperties(long context, long properties, long flags, long size, long host_ptr, long errcode_ret)Unsafe version of:CreateBufferWithProperties- Parameters:
size- the size in bytes of the buffer memory object to be allocated
-
clCreateBufferWithProperties
public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, long size, @Nullable java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.If
clCreateBufferWithPropertiesis called withMEM_USE_HOST_PTRset in itsflagsargument, the contents of the memory pointed to byhost_ptrat the time of theclCreateBufferWithPropertiescall define the initial contents of the buffer object.If
clCreateBufferWithPropertiesis called with a pointer returned bySVMAllocas itshost_ptrargument, andCL_MEM_USE_HOST_PTRis set in itsflagsargument,clCreateBufferWithPropertieswill succeed and return a valid non-zero buffer object as long as thesizeargument is no larger than the size argument passed in the originalclSVMAlloccall. The new buffer object returned has the shared memory as the underlying storage. Locations in the buffers underlying shared memory can be operated on using atomic operations to the devices level of support as defined in the memory model.- Parameters:
context- a valid OpenCL context used to create the buffer objectproperties- an optional list of properties for the buffer object and their corresponding values.The list is terminated with the special property 0. If no properties are required,
propertiesmay beNULL.flags- a bit-field that is used to specify allocation and usage information about the image memory object being created. One of:MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTRMEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS"size- the size in bytes of the buffer memory object to be allocatederrcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.- Returns:
- a valid non-zero buffer object and
errcode_retis set toSUCCESSif the buffer object is created successfully. Otherwise, it returns aNULLvalue with one of the following error values returned inerrcode_ret:INVALID_CONTEXTifcontextis not a valid context.INVALID_PROPERTYif a property name inpropertiesis not a supported property name, if the value specified for a supported property name is not valid, or if the same property name is specified more than once.INVALID_VALUEif values specified inflagsare not valid.INVALID_BUFFER_SIZEifsizeis 0 or ifsizeis greater thanDEVICE_MAX_MEM_ALLOC_SIZEfor all devices in context.INVALID_HOST_PTRifhost_ptrisNULLandMEM_USE_HOST_PTRorMEM_COPY_HOST_PTRare set inflagsor ifhost_ptris notNULLbutMEM_COPY_HOST_PTRorMEM_USE_HOST_PTRare not set inflags.MEM_OBJECT_ALLOCATION_FAILUREif there is a failure to allocate memory for buffer object.OUT_OF_RESOURCESif there is a failure to allocate resources required by the OpenCL implementation on the device.OUT_OF_HOST_MEMORYif there is a failure to allocate resources required by the OpenCL implementation on the host.
- See Also:
- Reference Page
-
clCreateBufferWithProperties
public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, java.nio.ByteBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, java.nio.ShortBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, java.nio.IntBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, java.nio.FloatBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, java.nio.DoubleBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret)Creates a buffer object with additional properties.If
clCreateBufferWithPropertiesis called withMEM_USE_HOST_PTRset in itsflagsargument, the contents of the memory pointed to byhost_ptrat the time of theclCreateBufferWithPropertiescall define the initial contents of the buffer object.If
clCreateBufferWithPropertiesis called with a pointer returned bySVMAllocas itshost_ptrargument, andCL_MEM_USE_HOST_PTRis set in itsflagsargument,clCreateBufferWithPropertieswill succeed and return a valid non-zero buffer object as long as thesizeargument is no larger than the size argument passed in the originalclSVMAlloccall. The new buffer object returned has the shared memory as the underlying storage. Locations in the buffers underlying shared memory can be operated on using atomic operations to the devices level of support as defined in the memory model.- Parameters:
context- a valid OpenCL context used to create the buffer objectproperties- an optional list of properties for the buffer object and their corresponding values.The list is terminated with the special property 0. If no properties are required,
propertiesmay beNULL.flags- a bit-field that is used to specify allocation and usage information about the image memory object being created. One of:MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTRMEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESS"host_ptr- a pointer to the buffer data that may already be allocated by the application.The size of the buffer that
host_ptrpoints to must be greater than or equal tosizebytes.errcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.- Returns:
- a valid non-zero buffer object and
errcode_retis set toSUCCESSif the buffer object is created successfully. Otherwise, it returns aNULLvalue with one of the following error values returned inerrcode_ret:INVALID_CONTEXTifcontextis not a valid context.INVALID_PROPERTYif a property name inpropertiesis not a supported property name, if the value specified for a supported property name is not valid, or if the same property name is specified more than once.INVALID_VALUEif values specified inflagsare not valid.INVALID_BUFFER_SIZEifsizeis 0 or ifsizeis greater thanDEVICE_MAX_MEM_ALLOC_SIZEfor all devices in context.INVALID_HOST_PTRifhost_ptrisNULLandMEM_USE_HOST_PTRorMEM_COPY_HOST_PTRare set inflagsor ifhost_ptris notNULLbutMEM_COPY_HOST_PTRorMEM_USE_HOST_PTRare not set inflags.MEM_OBJECT_ALLOCATION_FAILUREif there is a failure to allocate memory for buffer object.OUT_OF_RESOURCESif there is a failure to allocate resources required by the OpenCL implementation on the device.OUT_OF_HOST_MEMORYif there is a failure to allocate resources required by the OpenCL implementation on the host.
- See Also:
- Reference Page
-
nclCreateImageWithProperties
public static long nclCreateImageWithProperties(long context, long properties, long flags, long image_format, long image_desc, long host_ptr, long errcode_ret)Unsafe version of:CreateImageWithProperties
-
clCreateImageWithProperties
public static long clCreateImageWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable java.nio.ByteBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable java.nio.ShortBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable java.nio.IntBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable java.nio.LongBuffer properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable java.nio.FloatBuffer host_ptr, @Nullable java.nio.IntBuffer errcode_ret)Creates an image object with additional properties.For a 3D image or 2D image array, the image data specified by
host_ptris stored as a linear sequence of adjacent 2D image slices or 2D images respectively. Each 2D image is a linear sequence of adjacent scanlines. Each scanline is a linear sequence of image elements.For a 2D image, the image data specified by
host_ptris stored as a linear sequence of adjacent scanlines. Each scanline is a linear sequence of image elements.For a 1D image array, the image data specified by
host_ptris stored as a linear sequence of adjacent 1D images. Each 1D image is stored as a single scanline which is a linear sequence of adjacent elements.For 1D image or 1D image buffer, the image data specified by
host_ptris stored as a single scanline which is a linear sequence of adjacent elements.- Parameters:
context- a valid OpenCL context used to create the image objectproperties- an optional list of properties for the image object and their corresponding values.The list is terminated with the special property 0. If no properties are required, properties may be
NULL.flags- a bit-field that is used to specify allocation and usage information about the image memory object being created.For all image types except
MEM_OBJECT_IMAGE1D_BUFFER, if the value specified forflagsis 0, the default is used which isMEM_READ_WRITE.For
CL_MEM_OBJECT_IMAGE1D_BUFFERimage type, or an image created from another memory object (image or buffer), if theCL_MEM_READ_WRITE,MEM_READ_ONLYorMEM_WRITE_ONLYvalues are not specified inflags, they are inherited from the corresponding memory access qualifiers associated withmem_object. TheMEM_USE_HOST_PTR,MEM_ALLOC_HOST_PTRandMEM_COPY_HOST_PTRvalues cannot be specified inflagsbut are inherited from the corresponding memory access qualifiers associated withmem_object. IfCL_MEM_COPY_HOST_PTRis specified in the memory access qualifier values associated withmem_objectit does not imply any additional copies when the image is created frommem_object. If theMEM_HOST_WRITE_ONLY,MEM_HOST_READ_ONLYorMEM_HOST_NO_ACCESSvalues are not specified inflags, they are inherited from the corresponding memory access qualifiers associated withmem_object. One of:MEM_READ_WRITEMEM_WRITE_ONLYMEM_READ_ONLYMEM_USE_HOST_PTRMEM_ALLOC_HOST_PTRMEM_COPY_HOST_PTRMEM_HOST_WRITE_ONLYMEM_HOST_READ_ONLYMEM_HOST_NO_ACCESSimage_format- a pointer to a structure that describes format properties of the image to be allocated.A 1D image buffer or 2D image can be created from a buffer by specifying a buffer object in the
image_desc\u2192mem_object. A 2D image can be created from another 2D image object by specifying an image object in theimage_desc\u2192mem_object.image_desc- a pointer to a structure that describes type and dimensions of the image to be allocatedhost_ptr- a pointer to the image data that may already be allocated by the application.Refer to table below for a description of how large the buffer that
host_ptrpoints to must be.ImageType Size of buffer that host_ptrpoints toMEM_OBJECT_IMAGE1D≥ image_row_pitchMEM_OBJECT_IMAGE1D_BUFFER≥ image_row_pitchMEM_OBJECT_IMAGE2D≥ image_row_pitch * image_heightMEM_OBJECT_IMAGE3D≥ image_slice_pitch * image_depthMEM_OBJECT_IMAGE1D_ARRAY≥ image_slice_pitch * image_array_sizeMEM_OBJECT_IMAGE2D_ARRAY≥ image_slice_pitch * image_array_sizeerrcode_ret- will return an appropriate error code. Iferrcode_retisNULL, no error code is returned.- Returns:
- a valid non-zero image object and the
errcode_retis set toSUCCESSif the image object is created successfully. Otherwise, it returns aNULLvalue with one of the following error values returned inerrcode_ret:INVALID_CONTEXTifcontextis not a valid context.INVALID_PROPERTYif a property name inpropertiesis not a supported property name, if the value specified for a supported property name is not valid, or if the same property name is specified more than once.INVALID_VALUEif values specified inflagsare not valid.INVALID_IMAGE_FORMAT_DESCRIPTORif values specified inimage_formatare not valid or ifimage_formatisNULL.INVALID_IMAGE_FORMAT_DESCRIPTORif a 2D image is created from a buffer and the row pitch and base address alignment does not follow the rules described for creating a 2D image from a buffer.INVALID_IMAGE_FORMAT_DESCRIPTORif a 2D image is created from a 2D image object and the rules described above are not followed.INVALID_IMAGE_DESCRIPTORif values specified inimage_descare not valid or ifimage_descisNULL.INVALID_IMAGE_SIZEif image dimensions specified inimage_descexceed the maximum image dimensions for all devices in context.INVALID_HOST_PTRifhost_ptrisNULLandMEM_USE_HOST_PTRorMEM_COPY_HOST_PTRare set in flags or ifhost_ptris notNULLbutMEM_COPY_HOST_PTRorMEM_USE_HOST_PTRare not set in flags.INVALID_VALUEif an image is being created from another memory object (buffer or image) under one of the following circumstances:mem_objectwas created withCL_MEM_WRITE_ONLYandflagsspecifiesCL_MEM_READ_WRITEorCL_MEM_READ_ONLY,mem_objectwas created withCL_MEM_READ_ONLYand flags specifiesCL_MEM_READ_WRITEorCL_MEM_WRITE_ONLY,flagsspecifiesCL_MEM_USE_HOST_PTRorCL_MEM_ALLOC_HOST_PTRorCL_MEM_COPY_HOST_PTR.
INVALID_VALUEif an image is being created from another memory object (buffer or image) andmem_objectwas created withCL_MEM_HOST_WRITE_ONLYandflagsspecifiesCL_MEM_HOST_READ_ONLY, or ifmem_objectwas created withCL_MEM_HOST_READ_ONLYandflagsspecifiesCL_MEM_HOST_WRITE_ONLY, or ifmem_objectwas created withCL_MEM_HOST_NO_ACCESSandflagsspecifiesCL_MEM_HOST_READ_ONLYorCL_MEM_HOST_WRITE_ONLY.IMAGE_FORMAT_NOT_SUPPORTEDif there are no devices in context that supportimage_format.MEM_OBJECT_ALLOCATION_FAILUREif there is a failure to allocate memory for image object.INVALID_OPERATIONif there are no devices in context that support images.OUT_OF_RESOURCESif there is a failure to allocate resources required by the OpenCL implementation on the device.OUT_OF_HOST_MEMORYif there is a failure to allocate resources required by the OpenCL implementation on the host.
- See Also:
- Reference Page
-
clCreateBufferWithProperties
public static long clCreateBufferWithProperties(long context, @Nullable long[] properties, long flags, java.nio.ByteBuffer host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable long[] properties, long flags, short[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable long[] properties, long flags, int[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable long[] properties, long flags, float[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateBufferWithProperties(long context, @Nullable long[] properties, long flags, double[] host_ptr, @Nullable int[] errcode_ret)Array version of:CreateBufferWithProperties- See Also:
- Reference Page
-
clCreateImageWithProperties
public static long clCreateImageWithProperties(long context, @Nullable long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable java.nio.ByteBuffer host_ptr, @Nullable int[] errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable short[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable int[] host_ptr, @Nullable int[] errcode_ret) public static long clCreateImageWithProperties(long context, @Nullable long[] properties, long flags, CLImageFormat image_format, CLImageDesc image_desc, @Nullable float[] host_ptr, @Nullable int[] errcode_ret)Array version of:CreateImageWithProperties- See Also:
- Reference Page
-
-