All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lwjgl.opencl.CLCapabilities Maven / Gradle / Ivy

Go to download

An open, royalty-free standard for cross-platform, parallel programming of diverse processors found in personal computers, servers, mobile devices and embedded platforms.

There is a newer version: 3.3.4
Show newest version
/*
 * Copyright LWJGL. All rights reserved.
 * License terms: https://www.lwjgl.org/license
 * MACHINE GENERATED FILE, DO NOT EDIT
 */
package org.lwjgl.opencl;

import org.lwjgl.system.*;
import java.util.Set;

/**
 * Defines the capabilities of an OpenCL platform or device.
 * 
 * 

The instance returned by {@link CL#createPlatformCapabilities} exposes the functionality present on either the platform or any of its devices. * This is unlike the {@link CL10#CL_PLATFORM_EXTENSIONS PLATFORM_EXTENSIONS} string, which returns only platform functionality, supported across all platform devices.

* *

The instance returned by {@link CL#createDeviceCapabilities} exposes only the functionality available on that particular device.

*/ public class CLCapabilities { public final long clGetPlatformIDs, clGetPlatformInfo, clGetDeviceIDs, clGetDeviceInfo, clCreateContext, clCreateContextFromType, clRetainContext, clReleaseContext, clGetContextInfo, clCreateCommandQueue, clRetainCommandQueue, clReleaseCommandQueue, clGetCommandQueueInfo, clCreateBuffer, clEnqueueReadBuffer, clEnqueueWriteBuffer, clEnqueueCopyBuffer, clEnqueueMapBuffer, clCreateImage2D, clCreateImage3D, clGetSupportedImageFormats, clEnqueueReadImage, clEnqueueWriteImage, clEnqueueCopyImage, clEnqueueCopyImageToBuffer, clEnqueueCopyBufferToImage, clEnqueueMapImage, clGetImageInfo, clRetainMemObject, clReleaseMemObject, clEnqueueUnmapMemObject, clGetMemObjectInfo, clCreateSampler, clRetainSampler, clReleaseSampler, clGetSamplerInfo, clCreateProgramWithSource, clCreateProgramWithBinary, clRetainProgram, clReleaseProgram, clBuildProgram, clUnloadCompiler, clGetProgramInfo, clGetProgramBuildInfo, clCreateKernel, clCreateKernelsInProgram, clRetainKernel, clReleaseKernel, clSetKernelArg, clGetKernelInfo, clGetKernelWorkGroupInfo, clEnqueueNDRangeKernel, clEnqueueTask, clEnqueueNativeKernel, clWaitForEvents, clGetEventInfo, clRetainEvent, clReleaseEvent, clEnqueueMarker, clEnqueueBarrier, clEnqueueWaitForEvents, clGetEventProfilingInfo, clFlush, clFinish, clGetExtensionFunctionAddress, clCreateFromGLBuffer, clCreateFromGLTexture2D, clCreateFromGLTexture3D, clCreateFromGLRenderbuffer, clGetGLObjectInfo, clGetGLTextureInfo, clEnqueueAcquireGLObjects, clEnqueueReleaseGLObjects, clCreateSubBuffer, clSetMemObjectDestructorCallback, clEnqueueReadBufferRect, clEnqueueWriteBufferRect, clEnqueueCopyBufferRect, clCreateUserEvent, clSetUserEventStatus, clSetEventCallback, clGetExtensionFunctionAddressForPlatform, clRetainDevice, clReleaseDevice, clCreateSubDevices, clCreateImage, clCreateProgramWithBuiltInKernels, clCompileProgram, clLinkProgram, clUnloadPlatformCompiler, clGetKernelArgInfo, clEnqueueFillBuffer, clEnqueueFillImage, clEnqueueMigrateMemObjects, clEnqueueMarkerWithWaitList, clEnqueueBarrierWithWaitList, clCreateFromGLTexture, clCreateCommandQueueWithProperties, clCreatePipe, clGetPipeInfo, clSVMAlloc, clSVMFree, clEnqueueSVMFree, clEnqueueSVMMemcpy, clEnqueueSVMMemFill, clEnqueueSVMMap, clEnqueueSVMUnmap, clSetKernelArgSVMPointer, clSetKernelExecInfo, clCreateSamplerWithProperties, clSetDefaultDeviceCommandQueue, clGetDeviceAndHostTimer, clGetHostTimer, clCreateProgramWithIL, clCloneKernel, clGetKernelSubGroupInfo, clEnqueueSVMMigrateMem, clSetProgramReleaseCallback, clSetProgramSpecializationConstant, clTrackLiveObjectsAltera, clReportLiveObjectsAltera, clEnqueueWaitSignalAMD, clEnqueueWriteSignalAMD, clEnqueueMakeBuffersResidentAMD, clCreateCommandQueueWithPropertiesAPPLE, clLogMessagesToSystemLogAPPLE, clLogMessagesToStdoutAPPLE, clLogMessagesToStderrAPPLE, clGetGLContextInfoAPPLE, clReleaseDeviceEXT, clRetainDeviceEXT, clCreateSubDevicesEXT, clEnqueueMigrateMemObjectEXT, clCreateAcceleratorINTEL, clRetainAcceleratorINTEL, clReleaseAcceleratorINTEL, clGetAcceleratorInfoINTEL, clGetKernelSubGroupInfoKHR, clGetDeviceIDsFromVA_APIMediaAdapterINTEL, clCreateFromVA_APIMediaSurfaceINTEL, clEnqueueAcquireVA_APIMediaSurfacesINTEL, clEnqueueReleaseVA_APIMediaSurfacesINTEL, clCreateEventFromEGLSyncKHR, clCreateFromEGLImageKHR, clEnqueueAcquireEGLObjectsKHR, clEnqueueReleaseEGLObjectsKHR, clCreateEventFromGLsyncKHR, clGetGLContextInfoKHR, clTerminateContextKHR, clGetDeviceImageInfoQCOM; /** When true, {@link CL10} is supported. */ public final boolean OpenCL10; /** When true, {@link CL10GL} is supported. */ public final boolean OpenCL10GL; /** When true, {@link CL11} is supported. */ public final boolean OpenCL11; /** When true, {@link CL12} is supported. */ public final boolean OpenCL12; /** When true, {@link CL12GL} is supported. */ public final boolean OpenCL12GL; /** When true, {@link CL20} is supported. */ public final boolean OpenCL20; /** When true, {@link CL21} is supported. */ public final boolean OpenCL21; /** When true, {@link CL22} is supported. */ public final boolean OpenCL22; /** When true, {@link ALTERACompilerMode} is supported. */ public final boolean cl_altera_compiler_mode; /** When true, {@link ALTERADeviceTemperature} is supported. */ public final boolean cl_altera_device_temperature; /** When true, {@link ALTERALiveObjectTracking} is supported. */ public final boolean cl_altera_live_object_tracking; /** When true, {@link AMDBusAddressableMemory} is supported. */ public final boolean cl_amd_bus_addressable_memory; /** * When true, the amd_compile_options extension is supported. * *

This extension adds the following options, which are not part of the OpenCL specification:

* *
    *
  • -g – This is an experimental feature that lets you use the GNU project debugger, GDB, to debug kernels on x86 CPUs running Linux or * cygwin/minGW under Windows. This option does not affect the default optimization of the OpenCL code.
  • *
  • -O0 – Specifies to the compiler not to optimize. This is equivalent to the OpenCL standard option -cl-opt-disable.
  • *
  • -f[no-]bin-source – Does [not] generate OpenCL source in the .source section. By default, the source is NOT generated.
  • *
  • -f[no-]bin-llvmir – Does [not] generate LLVM IR in the .llvmir section. By default, LLVM IR IS generated.
  • *
  • -f[no-]bin-amdil – Does [not] generate AMD IL in the .amdil section. By Default, AMD IL is NOT generated.
  • *
  • -f[no-]bin-exe – Does [not] generate the executable (ISA) in .text section. By default, the executable IS generated.
  • *
  • -f[no-]bin-hsail – Does [not] generate HSAIL/BRIG in the binary. By default, HSA IL/BRIG is NOT generated.
  • *
* *

To avoid source changes, there are two environment variables that can be used to change CL options during the runtime:

* *
    *
  • AMD_OCL_BUILD_OPTIONS – Overrides the CL options specified in {@link CL10#clBuildProgram BuildProgram}.
  • *
  • AMD_OCL_BUILD_OPTIONS_APPEND – Appends options to the options specified in {@link CL10#clBuildProgram BuildProgram}.
  • *
*/ public final boolean cl_amd_compile_options; /** When true, {@link AMDDeviceAttributeQuery} is supported. */ public final boolean cl_amd_device_attribute_query; /** When true, {@link AMDDeviceBoardName} is supported. */ public final boolean cl_amd_device_board_name; /** When true, {@link AMDDevicePersistentMemory} is supported. */ public final boolean cl_amd_device_persistent_memory; /** When true, {@link AMDDeviceProfilingTimerOffset} is supported. */ public final boolean cl_amd_device_profiling_timer_offset; /** When true, {@link AMDDeviceTopology} is supported. */ public final boolean cl_amd_device_topology; /** * When true, the amd_event_callback extension is supported. * *

This extension provides the ability to register event callbacks for states other than {@link CL10#CL_COMPLETE COMPLETE}. The full set of event states are allowed: * {@link CL10#CL_QUEUED QUEUED}, {@link CL10#CL_SUBMITTED SUBMITTED}, and {@link CL10#CL_RUNNING RUNNING}.

*/ public final boolean cl_amd_event_callback; /** * When true, the amd_fp64 extension is supported. * *

This extension provides a subset of the functionality of that provided by the cl_khr_fp64 extension. When enabled, the compiler recognizes the double * scalar and vector types, compiles expressions involving those types, and accepts calls to all builtin functions enabled by the cl_khr_fp64 extension. * However, this extension does not guarantee that all cl_khr_fp64 built in functions are implemented and does not guarantee that the built in functions * that have been implemented would be considered conformant to the cl_khr_fp64 extension.

*/ public final boolean cl_amd_fp64; /** * When true, the amd_media_ops extension is supported. * *

The directive when enabled adds the following built-in functions to the OpenCL language.

* *

     * Note: typen denote opencl scalar type {n = 1} and vector types {n = 4, 8, 16}.
     * 
     * Build-in Function
     *   uint  amd_pack(float4 src)
     * Description
     *   dst =   ((((uint)src.s0) & 0xff)      )
     *         + ((((uint)src.s1) & 0xff) <<  8)
     *         + ((((uint)src.s2) & 0xff) << 16)
     *         + ((((uint)src.s3) & 0xff) << 24)
     * 
     * Build-in Function
     *   floatn  amd_unpack3(unitn src)
     * Description
     *   dst.s0 = (float)((src.s0 >> 24) & 0xff)
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   floatn   amd_unpack2 (unitn src)
     * Description
     *   dst.s0 = (float)((src.s0 >> 16) & 0xff)
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   floatn   amd_unpack1 (unitn src)
     * Description
     *   dst.s0 = (float)((src.s0 >> 8) & 0xff)
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   floatn   amd_unpack0 (unitn src)
     * Description
     *   dst.s0 = (float)(src.s0 & 0xff)
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_bitalign (uintn src0, uintn src1, uintn src2)
     * Description
     *   dst.s0 =  (uint) (((((long)src0.s0) << 32) | (long)src1.s0) >> (src2.s0 & 31))
     *   similar operation applied to other components of the vectors.
     * 
     * 
     * Build-in Function
     *   uintn  amd_bytealign (uintn src0, uintn src1, uintn src2)
     * Description
     *   dst.s0 =  (uint) (((((long)src0.s0) << 32) | (long)src1.s0) >> ((src2.s0 & 3)*8))
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_lerp (uintn src0, uintn src1, uintn src2)
     * Description
     *   dst.s0 = (((((src0.s0 >>  0) & 0xff) + ((src1.s0 >>  0) & 0xff) + ((src2.s0 >>  0) & 1)) >> 1) <<  0) +
     *            (((((src0.s0 >>  8) & 0xff) + ((src1.s0 >>  8) & 0xff) + ((src2.s0 >>  8) & 1)) >> 1) <<  8) +
     *            (((((src0.s0 >> 16) & 0xff) + ((src1.s0 >> 16) & 0xff) + ((src2.s0 >> 16) & 1)) >> 1) << 16) +
     *            (((((src0.s0 >> 24) & 0xff) + ((src1.s0 >> 24) & 0xff) + ((src2.s0 >> 24) & 1)) >> 1) << 24);
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_sad (uintn src0, uintn src1, uintn src2)
     * Description
     *   dst.s0 = src2.s0 +
     *            abs(((src0.s0 >>  0) & 0xff) - ((src1.s0 >>  0) & 0xff)) +
     *            abs(((src0.s0 >>  8) & 0xff) - ((src1.s0 >>  8) & 0xff)) +
     *            abs(((src0.s0 >> 16) & 0xff) - ((src1.s0 >> 16) & 0xff)) +
     *            abs(((src0.s0 >> 24) & 0xff) - ((src1.s0 >> 24) & 0xff));
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_sadhi (uintn src0, uintn src1n, uintn src2)
     * Description
     *   dst.s0 = src2.s0 +
     *            (abs(((src0.s0 >>  0) & 0xff) - ((src1.s0 >>  0) & 0xff)) << 16) +
     *            (abs(((src0.s0 >>  8) & 0xff) - ((src1.s0 >>  8) & 0xff)) << 16) +
     *            (abs(((src0.s0 >> 16) & 0xff) - ((src1.s0 >> 16) & 0xff)) << 16) +
     *            (abs(((src0.s0 >> 24) & 0xff) - ((src1.s0 >> 24) & 0xff)) << 16);
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uint  amd_sad4(uint4 src0, uint4 src1, uint src2)
     * Description
     *   dst   = src2   +
     *            abs(((src0.s0 >>  0) & 0xff) - ((src1.s0 >>  0) & 0xff)) +
     *            abs(((src0.s0 >>  8) & 0xff) - ((src1.s0 >>  8) & 0xff)) +
     *            abs(((src0.s0 >> 16) & 0xff) - ((src1.s0 >> 16) & 0xff)) +
     *            abs(((src0.s0 >> 24) & 0xff) - ((src1.s0 >> 24) & 0xff)) +
     *            abs(((src0.s1 >>  0) & 0xff) - ((src1.s0 >>  0) & 0xff)) +
     *            abs(((src0.s1 >>  8) & 0xff) - ((src1.s1 >>  8) & 0xff)) +
     *            abs(((src0.s1 >> 16) & 0xff) - ((src1.s1 >> 16) & 0xff)) +
     *            abs(((src0.s1 >> 24) & 0xff) - ((src1.s1 >> 24) & 0xff)) +
     *            abs(((src0.s2 >>  0) & 0xff) - ((src1.s2 >>  0) & 0xff)) +
     *            abs(((src0.s2 >>  8) & 0xff) - ((src1.s2 >>  8) & 0xff)) +
     *            abs(((src0.s2 >> 16) & 0xff) - ((src1.s2 >> 16) & 0xff)) +
     *            abs(((src0.s2 >> 24) & 0xff) - ((src1.s2 >> 24) & 0xff)) +
     *            abs(((src0.s3 >>  0) & 0xff) - ((src1.s3 >>  0) & 0xff)) +
     *            abs(((src0.s3 >>  8) & 0xff) - ((src1.s3 >>  8) & 0xff)) +
     *            abs(((src0.s3 >> 16) & 0xff) - ((src1.s3 >> 16) & 0xff)) +
     *            abs(((src0.s3 >> 24) & 0xff) - ((src1.s3 >> 24) & 0xff));
*/ public final boolean cl_amd_media_ops; /** * When true, the amd_media_ops2 extension is supported. * *

The directive when enabled adds the following built-in functions to the OpenCL language.

* *

     * Note: typen denote open scalar type { n = 1 } and vector types { n = 2, 4, 8, 16 }.
     * 
     * Build-in Function
     *   uintn  amd_msad (uintn src0, uintn src1, uintn src2)
     * Description
     *   uchar4 src0u8 = as_uchar4(src0.s0);
     *   uchar4 src1u8 = as_uchar4(src1.s0);
     *   dst.s0 = src2.s0 +
     *            ((src1u8.s0 == 0) ? 0 : abs(src0u8.s0 - src1u8.s0)) +
     *            ((src1u8.s1 == 0) ? 0 : abs(src0u8.s1 - src1u8.s1)) +
     *            ((src1u8.s2 == 0) ? 0 : abs(src0u8.s2 - src1u8.s2)) +
     *            ((src1u8.s3 == 0) ? 0 : abs(src0u8.s3 - src1u8.s3));
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   ulongn amd_qsad (ulongn src0, uintn src1, ulongn src2)
     * Description
     *   uchar8 src0u8 = as_uchar8(src0.s0);
     *   ushort4 src2u16 = as_ushort4(src2.s0);
     *   ushort4 dstu16;
     *   dstu16.s0 = amd_sad(as_uint(src0u8.s0123), src1.s0, src2u16.s0);
     *   dstu16.s1 = amd_sad(as_uint(src0u8.s1234), src1.s0, src2u16.s1);
     *   dstu16.s2 = amd_sad(as_uint(src0u8.s2345), src1.s0, src2u16.s2);
     *   dstu16.s3 = amd_sad(as_uint(src0u8.s3456), src1.s0, src2u16.s3);
     *   dst.s0 = as_uint2(dstu16);
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   ulongn amd_mqsad (ulongn src0, uintn src1, ulongn src2)
     * Description
     *   uchar8 src0u8 = as_uchar8(src0.s0);
     *   ushort4 src2u16 = as_ushort4(src2.s0);
     *   ushort4 dstu16;
     *   dstu16.s0 = amd_msad(as_uint(src0u8.s0123), src1.s0, src2u16.s0);
     *   dstu16.s1 = amd_msad(as_uint(src0u8.s1234), src1.s0, src2u16.s1);
     *   dstu16.s2 = amd_msad(as_uint(src0u8.s2345), src1.s0, src2u16.s2);
     *   dstu16.s3 = amd_msad(as_uint(src0u8.s3456), src1.s0, src2u16.s3);
     *   dst.s0 = as_uint2(dstu16);
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_sadw (uintn src0, uintn src1, uintn src2)
     * Description
     *   ushort2 src0u16 = as_ushort2(src0.s0);
     *   ushort2 src1u16 = as_ushort2(src1.s0);
     *   dst.s0 = src2.s0 +
     *            abs(src0u16.s0 - src1u16.s0) +
     *            abs(src0u16.s1 - src1u16.s1);
     *   similar operation applied to other components of the vectors
     * 
     * Build-in Function
     *   uintn  amd_sadd (uintn src0, uintn src1, uintn src2)
     * Description
     *   dst.s0 = src2.s0 +  abs(src0.s0 - src1.s0);
     *   similar operation applied to other components of the vectors
     * 
     * Built-in Function:
     *   uintn amd_bfm (uintn src0, uintn src1)
     * Description
     *   dst.s0 = ((1 << (src0.s0 & 0x1f)) - 1) << (src1.s0 & 0x1f);
     *   similar operation applied to other components of the vectors
     * 
     * Built-in Function:
     *   uintn amd_bfe (uintn src0, uintn src1, uintn src2)
     * Description
     *   NOTE: operator >> below represent logical right shift
     *   offset = src1.s0 & 31;
     *   width = src2.s0 & 31;
     *   if width = 0
     *       dst.s0 = 0;
     *   else if (offset + width) < 32
     *       dst.s0 = (src0.s0 << (32 - offset - width)) >> (32 - width);
     *   else
     *       dst.s0 = src0.s0 >> offset;
     *   similar operation applied to other components of the vectors
     * 
     * Built-in Function:
     *    intn amd_bfe (intn src0, uintn src1, uintn src2)
     * Description
     *   NOTE: operator >> below represent arithmetic right shift
     *   offset = src1.s0 & 31;
     *   width = src2.s0 & 31;
     *   if width = 0
     *       dst.s0 = 0;
     *   else if (offset + width) < 32
     *       dst.s0 = src0.s0 << (32-offset-width) >> 32-width;
     *   else
     *       dst.s0 = src0.s0 >> offset;
     *   similar operation applied to other components of the vectors
     * 
     * Built-in Function:
     *    intn amd_median3 (intn src0, intn src1, intn src2)
     *    uintn amd_median3 (uintn src0, uintn src1, uintn src2)
     *    floatn amd_median3 (floatn src0, floatn src1, floattn src2)
     * Description
     *    returns median of src0, src1, and src2
     * 
     * Built-in Function:
     *    intn amd_min3 (intn src0, intn src1, intn src2)
     *    uintn amd_min3 (uintn src0, uintn src1, uintn src2)
     *    floatn amd_min3 (floatn src0, floatn src1, floattn src2)
     * Description
     *    returns min of src0, src1, and src2
     * 
     * Built-in Function:
     *    intn amd_max3 (intn src0, intn src1, intn src2)
     *    uintn amd_max3 (uintn src0, uintn src1, uintn src2)
     *    floatn amd_max3 (floatn src0, floatn src1, floattn src2)
     * Description
     *    returns max of src0, src1, and src2
*/ public final boolean cl_amd_media_ops2; /** When true, {@link AMDOfflineDevices} is supported. */ public final boolean cl_amd_offline_devices; /** * When true, the amd_popcnt extension is supported. * *

This extension introduces a “population count” function called popcnt. This extension was taken into core OpenCL 1.2, and the function was renamed * popcount. The core 1.2 popcount function is identical to the AMD extension popcnt function.

*/ public final boolean cl_amd_popcnt; /** * When true, the amd_predefined_macros extension is supported. * *

The following macros are predefined when compiling OpenCL™ C kernels. These macros are defined automatically based on the device for which the code is * being compiled.

* *
GPU devices
* *
    *
  • __Barts__
  • *
  • __BeaverCreek__
  • *
  • __Bheem__
  • *
  • __Bonaire__
  • *
  • __Caicos__
  • *
  • __Capeverde__
  • *
  • __Carrizo__
  • *
  • __Cayman__
  • *
  • __Cedar__
  • *
  • __Cypress__
  • *
  • __Devastator__
  • *
  • __Hainan__
  • *
  • __Iceland__
  • *
  • __Juniper__
  • *
  • __Kalindi__
  • *
  • __Kauai__
  • *
  • __Lombok__
  • *
  • __Loveland__
  • *
  • __Mullins__
  • *
  • __Oland__
  • *
  • __Pitcairn__
  • *
  • __RV710__
  • *
  • __RV730__
  • *
  • __RV740__
  • *
  • __RV770__
  • *
  • __RV790__
  • *
  • __Redwood__
  • *
  • __Scrapper__
  • *
  • __Spectre__
  • *
  • __Spooky__
  • *
  • __Tahiti__
  • *
  • __Tonga__
  • *
  • __Turks__
  • *
  • __WinterPark__
  • *
  • __GPU__
  • *
* *
CPU devices
* *
    *
  • __CPU__
  • *
  • __X86__
  • *
  • __X86_64__
  • *
* *

Note that __GPU__ or __CPU__ are predefined whenever a GPU or CPU device is the compilation target.

*/ public final boolean cl_amd_predefined_macros; /** * When true, the amd_printf extension is supported. * *

This extension adds the built-in function {@code printf(__constant char * restrict format, …);}

* *

This function writes output to the stdout stream associated with the host application. The format string is a character sequence that:

* *
    *
  • is null-terminated and composed of zero and more directives,
  • *
  • ordinary characters (i.e. not %), which are copied directly to the output stream unchanged, and
  • *
  • conversion specifications, each of which can result in fetching zero or more arguments, converting them, and then writing the final result to the * output stream.
  • *
* *

The format string must be resolvable at compile time; thus, it cannot be dynamically created by the executing program. (Note that the use of variadic * arguments in the built-in printf does not imply its use in other builtins; more importantly, it is not valid to use printf in user-defined functions or * kernels.)

* *

The OpenCL C printf closely matches the definition found as part of the C99 standard. Note that conversions introduced in the format string with % are * supported with the following guidelines:

* *
    *
  • A 32-bit floating point argument is not converted to a 64-bit double, unless the extension cl_khr_fp64 is supported and enabled. This includes the * double variants if cl_khr_fp64 is supported and defined in the corresponding compilation unit.
  • *
  • 64-bit integer types can be printed using %ld / %lx / %lu.
  • *
  • %lld / %llx / %llu are not supported and reserved for 128-bit integer types (long long).
  • *
  • All OpenCL vector types can be explicitly passed and printed using the modifier vn, where n can be 2, 3, 4, 8, or 16. This modifier appears before * the original conversion specifier for the vector’s component type (for example, to print a float4 %v4f). Since vn is a conversion specifier, it is * valid to apply optional flags, such as field width and precision, just as it is when printing the component types. Since a vector is an aggregate * type, the comma separator is used between the components: 0:1, … , n-2:n-1.
  • *
*/ public final boolean cl_amd_printf; /** * When true, the amd_vec3 extension is supported. * *

This extension adds support for vectors with three elements: float3, short3, char3, etc. This data type was added to OpenCL 1.1 as a core feature.

*/ public final boolean cl_amd_vec3; /** When true, {@link APPLEBiasedFixedPointImageFormats} is supported. */ public final boolean cl_APPLE_biased_fixed_point_image_formats; /** When true, {@link APPLECommandQueuePriority} is supported. */ public final boolean cl_APPLE_command_queue_priority; /** When true, {@link APPLECommandQueueSelectComputeUnits} is supported. */ public final boolean cl_APPLE_command_queue_select_compute_units; /** When true, {@link APPLEContextLoggingFunctions} is supported. */ public final boolean cl_APPLE_ContextLoggingFunctions; /** When true, {@link APPLEFixedAlphaChannelOrders} is supported. */ public final boolean cl_APPLE_fixed_alpha_channel_orders; /** When true, {@code APPLE_fp64_basic_ops} is supported. */ public final boolean cl_APPLE_fp64_basic_ops; /** When true, {@link APPLEGLSharing} is supported. */ public final boolean cl_APPLE_gl_sharing; /** When true, {@link APPLEQueryKernelNames} is supported. */ public final boolean cl_APPLE_query_kernel_names; /** * When true, the arm_core_id extension is supported. * *

This extension provides a built-in function ({@code uint arm_get_core_id( void )}) which returns the physical core id (OpenCL Compute Unit) that a * work-group is running on. This value is uniform for a work-group.

* *

This value can be used for a core-specific cache or atomic pool where the storage is required to be in global memory and persistent (but not ordered) * between work-groups. This does not provide any additional ordering on top of the existing guarantees between workgroups, nor does it provide any * guarantee of concurrent execution.

*/ public final boolean cl_arm_core_id; /** When true, {@link ARMPrintf} is supported. */ public final boolean cl_arm_printf; /** When true, {@link EXTAtomicCounters32} is supported. */ public final boolean cl_ext_atomic_counters_32; /** When true, {@link EXTAtomicCounters64} is supported. */ public final boolean cl_ext_atomic_counters_64; /** When true, {@link EXTDeviceFission} is supported. */ public final boolean cl_ext_device_fission; /** When true, {@link EXTMigrateMemobject} is supported. */ public final boolean cl_ext_migrate_memobject; /** When true, {@link INTELAccelerator} is supported. */ public final boolean cl_intel_accelerator; /** When true, {@link INTELAdvancedMotionEstimation} is supported. */ public final boolean cl_intel_advanced_motion_estimation; /** When true, {@link INTELDevicePartitionByNames} is supported. */ public final boolean cl_intel_device_partition_by_names; /** When true, {@link INTELDeviceSideAVCMotionEstimation} is supported. */ public final boolean cl_intel_device_side_avc_motion_estimation; /** When true, {@link INTELDriverDiagnostics} is supported. */ public final boolean cl_intel_driver_diagnostics; /** When true, {@link INTELEGLImageYUV} is supported. */ public final boolean cl_intel_egl_image_yuv; /** * This extension augments the block read/write functionality available in the Intel vendor extensions {@link INTELSubgroups intel_subgroups} and * intel_media_block_io by the specification of additional built-in functions to facilitate the reading and writing of flexible 2D * regions from images. This API allows for the explicit specification of the width and height of the image regions. * *

While not required, this extension is most useful when the subgroup size is known at compile-time. The primary use case for this extension is to * support the reading of the edge texels (or image elements) of neighboring macro-blocks as described in the Intel vendor extension * {@link INTELDeviceSideAVCMotionEstimation intel_device_side_avc_motion_estimation}. When using the built-in functions from {@code cl_intel_device_ side_avc_motion_estimation} the * subgroup size is implicitly fixed to 16. In other use cases the subgroup size may be fixed using the {@link INTELRequiredSubgroupSize intel_required_subgroup_size} extension, if * needed.

*/ public final boolean cl_intel_media_block_io; /** When true, {@link INTELMotionEstimation} is supported. */ public final boolean cl_intel_motion_estimation; /** When true, {@link INTELPackedYUV} is supported. */ public final boolean cl_intel_packed_yuv; /** When true, {@link INTELPlanarYUV} is supported. */ public final boolean cl_intel_planar_yuv; /** When true, {@code intel_printf} is supported. */ public final boolean cl_intel_printf; /** When true, {@link INTELRequiredSubgroupSize} is supported. */ public final boolean cl_intel_required_subgroup_size; /** When true, {@link INTELSimultaneousSharing} is supported. */ public final boolean cl_intel_simultaneous_sharing; /** When true, {@link INTELSubgroups} is supported. */ public final boolean cl_intel_subgroups; /** * The goal of this extension is to allow programmers to improve the performance of applications operating on 16-bit data types by extending the subgroup * functions described in the {@link INTELSubgroups intel_subgroups} extension to support 16-bit integer data types (shorts and ushorts). Specifically, the extension: * *
    *
  • Extends the subgroup broadcast function to allow 16-bit integer values to be broadcast from one work item to all other work items in the subgroup.
  • *
  • Extends the subgroup scan and reduction functions to operate on 16-bit integer data types.
  • *
  • Extends the Intel subgroup shuffle functions to allow arbitrarily exchanging 16-bit integer values among work items in the subgroup.
  • *
  • Extends the Intel subgroup block read and write functions to allow reading and writing 16-bit integer data from images and buffers.
  • *
* *

Requires {@link CL12 OpenCL 1.2} and {@link INTELSubgroups intel_subgroups}

*/ public final boolean cl_intel_subgroups_short; /** When true, {@link INTELThreadLocalExec} is supported. */ public final boolean cl_intel_thread_local_exec; /** When true, {@link INTELVAAPIMediaSharing} is supported. */ public final boolean cl_intel_va_api_media_sharing; /** * When true, the khr_3d_image_writes extension is supported. * *

This extension adds support for kernel writes to 3D images.

*/ public final boolean cl_khr_3d_image_writes; /** * When true, the khr_byte_addressable_store extension is supported. * *

This extension eliminates the restriction of not allowing writes to a pointer (or array elements) of types less than 32-bit wide in kernel program.

*/ public final boolean cl_khr_byte_addressable_store; /** When true, {@link KHRDepthImages} is supported. */ public final boolean cl_khr_depth_images; /** * When true, the khr_device_enqueue_local_arg_types extension is supported. * *

This extension allows arguments to blocks passed to enqueue_kernel functions to be declared as a pointer to any type (built-in or user-defined) in * local memory instead of just {@code local void *}.

*/ public final boolean cl_khr_device_enqueue_local_arg_types; /** When true, {@link KHREGLEvent} is supported. */ public final boolean cl_khr_egl_event; /** When true, {@link KHREGLImage} is supported. */ public final boolean cl_khr_egl_image; /** When true, {@link KHRFP16} is supported. */ public final boolean cl_khr_fp16; /** When true, {@link KHRFP64} is supported. */ public final boolean cl_khr_fp64; /** When true, {@link KHRGLDepthImages} is supported. */ public final boolean cl_khr_gl_depth_images; /** When true, {@link KHRGLEvent} is supported. */ public final boolean cl_khr_gl_event; /** When true, {@link KHRGLMSAASharing} is supported. */ public final boolean cl_khr_gl_msaa_sharing; /** When true, {@link KHRGLSharing} is supported. */ public final boolean cl_khr_gl_sharing; /** * When true, the khr_global_int32_base_atomics extension is supported. * *

This extension adds basic atomic operations on 32-bit integers in global memory.

*/ public final boolean cl_khr_global_int32_base_atomics; /** * When true, the khr_global_int32_extended_atomics extension is supported. * *

This extension adds extended atomic operations on 32-bit integers in global memory.

*/ public final boolean cl_khr_global_int32_extended_atomics; /** When true, {@link KHRICD} is supported. */ public final boolean cl_khr_icd; /** When true, {@link KHRImage2DFromBuffer} is supported. */ public final boolean cl_khr_image2d_from_buffer; /** When true, {@link KHRInitializeMemory} is supported. */ public final boolean cl_khr_initialize_memory; /** * When true, the khr_int64_base_atomics extension is supported. * *

This extension adds basic atomic operations on 64-bit integers in both global and local memory.

*/ public final boolean cl_khr_int64_base_atomics; /** * When true, the khr_int64_extended_atomics extension is supported. * *

This extension adds extended atomic operations on 64-bit integers in both global and local memory.

*/ public final boolean cl_khr_int64_extended_atomics; /** * When true, the khr_local_int32_base_atomics extension is supported. * *

This extension adds basic atomic operations on 32-bit integers in local memory.

*/ public final boolean cl_khr_local_int32_base_atomics; /** * When true, the khr_local_int32_extended_atomics extension is supported. * *

This extension adds extended atomic operations on 32-bit integers in local memory.

*/ public final boolean cl_khr_local_int32_extended_atomics; /** When true, {@link KHRMipmapImage} is supported. */ public final boolean cl_khr_mipmap_image; /** * When true, the khr_mipmap_image_writes extension is supported. * *

This extension adds built-in functions that can be used to write a mip-mapped image in an OpenCL C program.

*/ public final boolean cl_khr_mipmap_image_writes; /** When true, {@link KHRPriorityHints} is supported. */ public final boolean cl_khr_priority_hints; /** * When true, the khr_select_fprounding_mode extension is supported. * *

This extension adds support for specifying the rounding mode for an instruction or group of instructions in the program source.

* *

The appropriate rounding mode can be specified using {@code #pragma OPENCL SELECT_ROUNDING_MODE} rounding-mode in the program source.

* *

The {@code #pragma OPENCL SELECT_ROUNDING_MODE} sets the rounding mode for all instructions that operate on floating-point types (scalar or vector * types) or produce floating-point values that follow this pragma in the program source until the next {@code #pragma OPENCL SELECT_ROUNDING_MODE} is * encountered. Note that the rounding mode specified for a block of code is known at compile time. Except where otherwise documented, the callee * functions do not inherit the rounding mode of the caller function.

* *

If this extension is enabled, the {@code __ROUNDING_MODE__} preprocessor symbol shall be defined to be one of the following according to the current * rounding mode:

* *

     * #define __ROUNDING_MODE__ rte
     * #define __ROUNDING_MODE__ rtz
     * #define __ROUNDING_MODE__ rtp
     * #define __ROUNDING_MODE__ rtz
* *

The default rounding mode is round to nearest even. The built-in math functions, the common functions, and the geometric functions are implemented with * the round to nearest even rounding mode.

* *

Various built-in conversions and the vstore_half and vstorea_halfn built-in functions that do not specify a rounding mode inherit the current rounding * mode. Conversions from floating-point to integer type always use rtz mode, except where the user specifically asks for another rounding mode.

* *

Notes The above four rounding modes are defined by IEEE 754. Floating-point calculations may be carried out internally with extra precision and then * rounded to fit into the destination type. Round to nearest even is currently the only rounding mode required by the OpenCL specification and is * therefore the default rounding mode. In addition, only static selection of rounding mode is supported. Dynamically reconfiguring the rounding modes as * specified by the IEEE 754 spec is not a requirement.

*/ public final boolean cl_khr_select_fprounding_mode; /** When true, {@link KHRSPIR} is supported. */ public final boolean cl_khr_spir; /** When true, {@link KHRSubgroupNamedBarrier} is supported. */ public final boolean cl_khr_subgroup_named_barrier; /** When true, {@link KHRTerminateContext} is supported. */ public final boolean cl_khr_terminate_context; /** When true, {@link KHRThrottleHints} is supported. */ public final boolean cl_khr_throttle_hints; /** * When true, the nv_compiler_options extension is supported. * *

This extension allows the programmer to pass options to the PTX assembler allowing greater control over code generation.

* *

     * -cl-nv-maxrregcount <N>
     *     Passed on to ptxas as --maxrregcount <N>
     *         N is a positive integer.
     *     Specify the maximum number of registers that GPU functions can use.
     *     Until a function-specific limit, a higher value will generally increase
     *     the performance of individual GPU threads that execute this function.
     *     However, because thread registers are allocated from a global register
     *     pool on each GPU, a higher value of this option will also reduce the
     *     maximum thread block size, thereby reducing the amount of thread
     *     parallelism. Hence, a good maxrregcount value is the result of a
     *     trade-off.
     *     If this option is not specified, then no maximum is assumed. Otherwise
     *     the specified value will be rounded to the next multiple of 4 registers
     *     until the GPU specific maximum of 128 registers.
     * 
     * -cl-nv-opt-level <N>
     *     Passed on to ptxas as --opt-level <N>
     *         N is a positive integer, or 0 (no optimization).
     *     Specify optimization level.
     *     Default value:  3.
     * 
     * -cl-nv-verbose
     *     Passed on to ptxas as --verbose
     *     Enable verbose mode.
     *     Output will be reported in the build log (accessible through the
     *     callback parameter to clBuildProgram).
*/ public final boolean cl_nv_compiler_options; /** When true, {@link NVDeviceAttributeQuery} is supported. */ public final boolean cl_nv_device_attribute_query; /** * When true, the nv_pragma_unroll extension is supported. * *
Overview
* *

This extension extends the OpenCL C language with a hint that allows loops to be unrolled. This pragma must be used for a loop and can be used to * specify full unrolling or partial unrolling by a certain amount. This is a hint and the compiler may ignore this pragma for any reason.

* *
Goals
* *

The principal goal of the pragma unroll is to improve the performance of loops via unrolling. Typically this enables other optimizations or improves * instruction level parallelism of a thread.

* *
Details
* *

A user may specify that a loop in the source program be unrolled. This is done via a pragma. The syntax of this pragma is as follows

* *

{@code #pragma unroll [unroll-factor]}

* *

The pragma unroll may optionally specify an unroll factor. The pragma must be placed immediately before the loop and only applies to that loop.

* *

If unroll factor is not specified then the compiler will try to do complete or full unrolling of the loop. If a loop unroll factor is specified the * compiler will perform partial loop unrolling. The loop factor, if specified, must be a compile time non negative integer constant.

* *

A loop unroll factor of 1 means that the compiler should not unroll the loop.

* *

A complete unroll specification has no effect if the trip count of the loop is not compile-time computable.

*/ public final boolean cl_nv_pragma_unroll; /** When true, {@link QCOMEXTHostPtr} is supported. */ public final boolean cl_qcom_ext_host_ptr; /** When true, {@link QCOMEXTHostPtrIOCoherent} is supported. */ public final boolean cl_qcom_ext_host_ptr_iocoherent; CLCapabilities(FunctionProvider provider, Set ext) { this(ext, provider.getFunctionAddress("clGetPlatformIDs"), provider.getFunctionAddress("clGetPlatformInfo"), provider.getFunctionAddress("clGetDeviceIDs"), provider.getFunctionAddress("clGetDeviceInfo"), provider.getFunctionAddress("clCreateContext"), provider.getFunctionAddress("clCreateContextFromType"), provider.getFunctionAddress("clRetainContext"), provider.getFunctionAddress("clReleaseContext"), provider.getFunctionAddress("clGetContextInfo"), provider.getFunctionAddress("clCreateCommandQueue"), provider.getFunctionAddress("clRetainCommandQueue"), provider.getFunctionAddress("clReleaseCommandQueue"), provider.getFunctionAddress("clGetCommandQueueInfo"), provider.getFunctionAddress("clCreateBuffer"), provider.getFunctionAddress("clEnqueueReadBuffer"), provider.getFunctionAddress("clEnqueueWriteBuffer"), provider.getFunctionAddress("clEnqueueCopyBuffer"), provider.getFunctionAddress("clEnqueueMapBuffer"), provider.getFunctionAddress("clCreateImage2D"), provider.getFunctionAddress("clCreateImage3D"), provider.getFunctionAddress("clGetSupportedImageFormats"), provider.getFunctionAddress("clEnqueueReadImage"), provider.getFunctionAddress("clEnqueueWriteImage"), provider.getFunctionAddress("clEnqueueCopyImage"), provider.getFunctionAddress("clEnqueueCopyImageToBuffer"), provider.getFunctionAddress("clEnqueueCopyBufferToImage"), provider.getFunctionAddress("clEnqueueMapImage"), provider.getFunctionAddress("clGetImageInfo"), provider.getFunctionAddress("clRetainMemObject"), provider.getFunctionAddress("clReleaseMemObject"), provider.getFunctionAddress("clEnqueueUnmapMemObject"), provider.getFunctionAddress("clGetMemObjectInfo"), provider.getFunctionAddress("clCreateSampler"), provider.getFunctionAddress("clRetainSampler"), provider.getFunctionAddress("clReleaseSampler"), provider.getFunctionAddress("clGetSamplerInfo"), provider.getFunctionAddress("clCreateProgramWithSource"), provider.getFunctionAddress("clCreateProgramWithBinary"), provider.getFunctionAddress("clRetainProgram"), provider.getFunctionAddress("clReleaseProgram"), provider.getFunctionAddress("clBuildProgram"), provider.getFunctionAddress("clUnloadCompiler"), provider.getFunctionAddress("clGetProgramInfo"), provider.getFunctionAddress("clGetProgramBuildInfo"), provider.getFunctionAddress("clCreateKernel"), provider.getFunctionAddress("clCreateKernelsInProgram"), provider.getFunctionAddress("clRetainKernel"), provider.getFunctionAddress("clReleaseKernel"), provider.getFunctionAddress("clSetKernelArg"), provider.getFunctionAddress("clGetKernelInfo"), provider.getFunctionAddress("clGetKernelWorkGroupInfo"), provider.getFunctionAddress("clEnqueueNDRangeKernel"), provider.getFunctionAddress("clEnqueueTask"), provider.getFunctionAddress("clEnqueueNativeKernel"), provider.getFunctionAddress("clWaitForEvents"), provider.getFunctionAddress("clGetEventInfo"), provider.getFunctionAddress("clRetainEvent"), provider.getFunctionAddress("clReleaseEvent"), provider.getFunctionAddress("clEnqueueMarker"), provider.getFunctionAddress("clEnqueueBarrier"), provider.getFunctionAddress("clEnqueueWaitForEvents"), provider.getFunctionAddress("clGetEventProfilingInfo"), provider.getFunctionAddress("clFlush"), provider.getFunctionAddress("clFinish"), provider.getFunctionAddress("clGetExtensionFunctionAddress"), provider.getFunctionAddress("clCreateFromGLBuffer"), provider.getFunctionAddress("clCreateFromGLTexture2D"), provider.getFunctionAddress("clCreateFromGLTexture3D"), provider.getFunctionAddress("clCreateFromGLRenderbuffer"), provider.getFunctionAddress("clGetGLObjectInfo"), provider.getFunctionAddress("clGetGLTextureInfo"), provider.getFunctionAddress("clEnqueueAcquireGLObjects"), provider.getFunctionAddress("clEnqueueReleaseGLObjects"), provider.getFunctionAddress("clCreateSubBuffer"), provider.getFunctionAddress("clSetMemObjectDestructorCallback"), provider.getFunctionAddress("clEnqueueReadBufferRect"), provider.getFunctionAddress("clEnqueueWriteBufferRect"), provider.getFunctionAddress("clEnqueueCopyBufferRect"), provider.getFunctionAddress("clCreateUserEvent"), provider.getFunctionAddress("clSetUserEventStatus"), provider.getFunctionAddress("clSetEventCallback"), provider.getFunctionAddress("clGetExtensionFunctionAddressForPlatform"), provider.getFunctionAddress("clRetainDevice"), provider.getFunctionAddress("clReleaseDevice"), provider.getFunctionAddress("clCreateSubDevices"), provider.getFunctionAddress("clCreateImage"), provider.getFunctionAddress("clCreateProgramWithBuiltInKernels"), provider.getFunctionAddress("clCompileProgram"), provider.getFunctionAddress("clLinkProgram"), provider.getFunctionAddress("clUnloadPlatformCompiler"), provider.getFunctionAddress("clGetKernelArgInfo"), provider.getFunctionAddress("clEnqueueFillBuffer"), provider.getFunctionAddress("clEnqueueFillImage"), provider.getFunctionAddress("clEnqueueMigrateMemObjects"), provider.getFunctionAddress("clEnqueueMarkerWithWaitList"), provider.getFunctionAddress("clEnqueueBarrierWithWaitList"), provider.getFunctionAddress("clCreateFromGLTexture"), provider.getFunctionAddress("clCreateCommandQueueWithProperties"), provider.getFunctionAddress("clCreatePipe"), provider.getFunctionAddress("clGetPipeInfo"), provider.getFunctionAddress("clSVMAlloc"), provider.getFunctionAddress("clSVMFree"), provider.getFunctionAddress("clEnqueueSVMFree"), provider.getFunctionAddress("clEnqueueSVMMemcpy"), provider.getFunctionAddress("clEnqueueSVMMemFill"), provider.getFunctionAddress("clEnqueueSVMMap"), provider.getFunctionAddress("clEnqueueSVMUnmap"), provider.getFunctionAddress("clSetKernelArgSVMPointer"), provider.getFunctionAddress("clSetKernelExecInfo"), provider.getFunctionAddress("clCreateSamplerWithProperties"), provider.getFunctionAddress("clSetDefaultDeviceCommandQueue"), provider.getFunctionAddress("clGetDeviceAndHostTimer"), provider.getFunctionAddress("clGetHostTimer"), provider.getFunctionAddress("clCreateProgramWithIL"), provider.getFunctionAddress("clCloneKernel"), provider.getFunctionAddress("clGetKernelSubGroupInfo"), provider.getFunctionAddress("clEnqueueSVMMigrateMem"), provider.getFunctionAddress("clSetProgramReleaseCallback"), provider.getFunctionAddress("clSetProgramSpecializationConstant"), provider.getFunctionAddress("clTrackLiveObjectsAltera"), provider.getFunctionAddress("clReportLiveObjectsAltera"), provider.getFunctionAddress("clEnqueueWaitSignalAMD"), provider.getFunctionAddress("clEnqueueWriteSignalAMD"), provider.getFunctionAddress("clEnqueueMakeBuffersResidentAMD"), provider.getFunctionAddress("clCreateCommandQueueWithPropertiesAPPLE"), provider.getFunctionAddress("clLogMessagesToSystemLogAPPLE"), provider.getFunctionAddress("clLogMessagesToStdoutAPPLE"), provider.getFunctionAddress("clLogMessagesToStderrAPPLE"), provider.getFunctionAddress("clGetGLContextInfoAPPLE"), provider.getFunctionAddress("clReleaseDeviceEXT"), provider.getFunctionAddress("clRetainDeviceEXT"), provider.getFunctionAddress("clCreateSubDevicesEXT"), provider.getFunctionAddress("clEnqueueMigrateMemObjectEXT"), provider.getFunctionAddress("clCreateAcceleratorINTEL"), provider.getFunctionAddress("clRetainAcceleratorINTEL"), provider.getFunctionAddress("clReleaseAcceleratorINTEL"), provider.getFunctionAddress("clGetAcceleratorInfoINTEL"), provider.getFunctionAddress("clGetKernelSubGroupInfoKHR"), provider.getFunctionAddress("clGetDeviceIDsFromVA_APIMediaAdapterINTEL"), provider.getFunctionAddress("clCreateFromVA_APIMediaSurfaceINTEL"), provider.getFunctionAddress("clEnqueueAcquireVA_APIMediaSurfacesINTEL"), provider.getFunctionAddress("clEnqueueReleaseVA_APIMediaSurfacesINTEL"), provider.getFunctionAddress("clCreateEventFromEGLSyncKHR"), provider.getFunctionAddress("clCreateFromEGLImageKHR"), provider.getFunctionAddress("clEnqueueAcquireEGLObjectsKHR"), provider.getFunctionAddress("clEnqueueReleaseEGLObjectsKHR"), provider.getFunctionAddress("clCreateEventFromGLsyncKHR"), provider.getFunctionAddress("clGetGLContextInfoKHR"), provider.getFunctionAddress("clTerminateContextKHR"), provider.getFunctionAddress("clGetDeviceImageInfoQCOM") ); } CLCapabilities(CLCapabilities caps, Set ext) { this(ext, caps.clGetPlatformIDs, caps.clGetPlatformInfo, caps.clGetDeviceIDs, caps.clGetDeviceInfo, caps.clCreateContext, caps.clCreateContextFromType, caps.clRetainContext, caps.clReleaseContext, caps.clGetContextInfo, caps.clCreateCommandQueue, caps.clRetainCommandQueue, caps.clReleaseCommandQueue, caps.clGetCommandQueueInfo, caps.clCreateBuffer, caps.clEnqueueReadBuffer, caps.clEnqueueWriteBuffer, caps.clEnqueueCopyBuffer, caps.clEnqueueMapBuffer, caps.clCreateImage2D, caps.clCreateImage3D, caps.clGetSupportedImageFormats, caps.clEnqueueReadImage, caps.clEnqueueWriteImage, caps.clEnqueueCopyImage, caps.clEnqueueCopyImageToBuffer, caps.clEnqueueCopyBufferToImage, caps.clEnqueueMapImage, caps.clGetImageInfo, caps.clRetainMemObject, caps.clReleaseMemObject, caps.clEnqueueUnmapMemObject, caps.clGetMemObjectInfo, caps.clCreateSampler, caps.clRetainSampler, caps.clReleaseSampler, caps.clGetSamplerInfo, caps.clCreateProgramWithSource, caps.clCreateProgramWithBinary, caps.clRetainProgram, caps.clReleaseProgram, caps.clBuildProgram, caps.clUnloadCompiler, caps.clGetProgramInfo, caps.clGetProgramBuildInfo, caps.clCreateKernel, caps.clCreateKernelsInProgram, caps.clRetainKernel, caps.clReleaseKernel, caps.clSetKernelArg, caps.clGetKernelInfo, caps.clGetKernelWorkGroupInfo, caps.clEnqueueNDRangeKernel, caps.clEnqueueTask, caps.clEnqueueNativeKernel, caps.clWaitForEvents, caps.clGetEventInfo, caps.clRetainEvent, caps.clReleaseEvent, caps.clEnqueueMarker, caps.clEnqueueBarrier, caps.clEnqueueWaitForEvents, caps.clGetEventProfilingInfo, caps.clFlush, caps.clFinish, caps.clGetExtensionFunctionAddress, caps.clCreateFromGLBuffer, caps.clCreateFromGLTexture2D, caps.clCreateFromGLTexture3D, caps.clCreateFromGLRenderbuffer, caps.clGetGLObjectInfo, caps.clGetGLTextureInfo, caps.clEnqueueAcquireGLObjects, caps.clEnqueueReleaseGLObjects, caps.clCreateSubBuffer, caps.clSetMemObjectDestructorCallback, caps.clEnqueueReadBufferRect, caps.clEnqueueWriteBufferRect, caps.clEnqueueCopyBufferRect, caps.clCreateUserEvent, caps.clSetUserEventStatus, caps.clSetEventCallback, caps.clGetExtensionFunctionAddressForPlatform, caps.clRetainDevice, caps.clReleaseDevice, caps.clCreateSubDevices, caps.clCreateImage, caps.clCreateProgramWithBuiltInKernels, caps.clCompileProgram, caps.clLinkProgram, caps.clUnloadPlatformCompiler, caps.clGetKernelArgInfo, caps.clEnqueueFillBuffer, caps.clEnqueueFillImage, caps.clEnqueueMigrateMemObjects, caps.clEnqueueMarkerWithWaitList, caps.clEnqueueBarrierWithWaitList, caps.clCreateFromGLTexture, caps.clCreateCommandQueueWithProperties, caps.clCreatePipe, caps.clGetPipeInfo, caps.clSVMAlloc, caps.clSVMFree, caps.clEnqueueSVMFree, caps.clEnqueueSVMMemcpy, caps.clEnqueueSVMMemFill, caps.clEnqueueSVMMap, caps.clEnqueueSVMUnmap, caps.clSetKernelArgSVMPointer, caps.clSetKernelExecInfo, caps.clCreateSamplerWithProperties, caps.clSetDefaultDeviceCommandQueue, caps.clGetDeviceAndHostTimer, caps.clGetHostTimer, caps.clCreateProgramWithIL, caps.clCloneKernel, caps.clGetKernelSubGroupInfo, caps.clEnqueueSVMMigrateMem, caps.clSetProgramReleaseCallback, caps.clSetProgramSpecializationConstant, caps.clTrackLiveObjectsAltera, caps.clReportLiveObjectsAltera, caps.clEnqueueWaitSignalAMD, caps.clEnqueueWriteSignalAMD, caps.clEnqueueMakeBuffersResidentAMD, caps.clCreateCommandQueueWithPropertiesAPPLE, caps.clLogMessagesToSystemLogAPPLE, caps.clLogMessagesToStdoutAPPLE, caps.clLogMessagesToStderrAPPLE, caps.clGetGLContextInfoAPPLE, caps.clReleaseDeviceEXT, caps.clRetainDeviceEXT, caps.clCreateSubDevicesEXT, caps.clEnqueueMigrateMemObjectEXT, caps.clCreateAcceleratorINTEL, caps.clRetainAcceleratorINTEL, caps.clReleaseAcceleratorINTEL, caps.clGetAcceleratorInfoINTEL, caps.clGetKernelSubGroupInfoKHR, caps.clGetDeviceIDsFromVA_APIMediaAdapterINTEL, caps.clCreateFromVA_APIMediaSurfaceINTEL, caps.clEnqueueAcquireVA_APIMediaSurfacesINTEL, caps.clEnqueueReleaseVA_APIMediaSurfacesINTEL, caps.clCreateEventFromEGLSyncKHR, caps.clCreateFromEGLImageKHR, caps.clEnqueueAcquireEGLObjectsKHR, caps.clEnqueueReleaseEGLObjectsKHR, caps.clCreateEventFromGLsyncKHR, caps.clGetGLContextInfoKHR, caps.clTerminateContextKHR, caps.clGetDeviceImageInfoQCOM ); } private CLCapabilities(Set ext, long... functions) { clGetPlatformIDs = functions[0]; clGetPlatformInfo = functions[1]; clGetDeviceIDs = functions[2]; clGetDeviceInfo = functions[3]; clCreateContext = functions[4]; clCreateContextFromType = functions[5]; clRetainContext = functions[6]; clReleaseContext = functions[7]; clGetContextInfo = functions[8]; clCreateCommandQueue = functions[9]; clRetainCommandQueue = functions[10]; clReleaseCommandQueue = functions[11]; clGetCommandQueueInfo = functions[12]; clCreateBuffer = functions[13]; clEnqueueReadBuffer = functions[14]; clEnqueueWriteBuffer = functions[15]; clEnqueueCopyBuffer = functions[16]; clEnqueueMapBuffer = functions[17]; clCreateImage2D = functions[18]; clCreateImage3D = functions[19]; clGetSupportedImageFormats = functions[20]; clEnqueueReadImage = functions[21]; clEnqueueWriteImage = functions[22]; clEnqueueCopyImage = functions[23]; clEnqueueCopyImageToBuffer = functions[24]; clEnqueueCopyBufferToImage = functions[25]; clEnqueueMapImage = functions[26]; clGetImageInfo = functions[27]; clRetainMemObject = functions[28]; clReleaseMemObject = functions[29]; clEnqueueUnmapMemObject = functions[30]; clGetMemObjectInfo = functions[31]; clCreateSampler = functions[32]; clRetainSampler = functions[33]; clReleaseSampler = functions[34]; clGetSamplerInfo = functions[35]; clCreateProgramWithSource = functions[36]; clCreateProgramWithBinary = functions[37]; clRetainProgram = functions[38]; clReleaseProgram = functions[39]; clBuildProgram = functions[40]; clUnloadCompiler = functions[41]; clGetProgramInfo = functions[42]; clGetProgramBuildInfo = functions[43]; clCreateKernel = functions[44]; clCreateKernelsInProgram = functions[45]; clRetainKernel = functions[46]; clReleaseKernel = functions[47]; clSetKernelArg = functions[48]; clGetKernelInfo = functions[49]; clGetKernelWorkGroupInfo = functions[50]; clEnqueueNDRangeKernel = functions[51]; clEnqueueTask = functions[52]; clEnqueueNativeKernel = functions[53]; clWaitForEvents = functions[54]; clGetEventInfo = functions[55]; clRetainEvent = functions[56]; clReleaseEvent = functions[57]; clEnqueueMarker = functions[58]; clEnqueueBarrier = functions[59]; clEnqueueWaitForEvents = functions[60]; clGetEventProfilingInfo = functions[61]; clFlush = functions[62]; clFinish = functions[63]; clGetExtensionFunctionAddress = functions[64]; clCreateFromGLBuffer = functions[65]; clCreateFromGLTexture2D = functions[66]; clCreateFromGLTexture3D = functions[67]; clCreateFromGLRenderbuffer = functions[68]; clGetGLObjectInfo = functions[69]; clGetGLTextureInfo = functions[70]; clEnqueueAcquireGLObjects = functions[71]; clEnqueueReleaseGLObjects = functions[72]; clCreateSubBuffer = functions[73]; clSetMemObjectDestructorCallback = functions[74]; clEnqueueReadBufferRect = functions[75]; clEnqueueWriteBufferRect = functions[76]; clEnqueueCopyBufferRect = functions[77]; clCreateUserEvent = functions[78]; clSetUserEventStatus = functions[79]; clSetEventCallback = functions[80]; clGetExtensionFunctionAddressForPlatform = functions[81]; clRetainDevice = functions[82]; clReleaseDevice = functions[83]; clCreateSubDevices = functions[84]; clCreateImage = functions[85]; clCreateProgramWithBuiltInKernels = functions[86]; clCompileProgram = functions[87]; clLinkProgram = functions[88]; clUnloadPlatformCompiler = functions[89]; clGetKernelArgInfo = functions[90]; clEnqueueFillBuffer = functions[91]; clEnqueueFillImage = functions[92]; clEnqueueMigrateMemObjects = functions[93]; clEnqueueMarkerWithWaitList = functions[94]; clEnqueueBarrierWithWaitList = functions[95]; clCreateFromGLTexture = functions[96]; clCreateCommandQueueWithProperties = functions[97]; clCreatePipe = functions[98]; clGetPipeInfo = functions[99]; clSVMAlloc = functions[100]; clSVMFree = functions[101]; clEnqueueSVMFree = functions[102]; clEnqueueSVMMemcpy = functions[103]; clEnqueueSVMMemFill = functions[104]; clEnqueueSVMMap = functions[105]; clEnqueueSVMUnmap = functions[106]; clSetKernelArgSVMPointer = functions[107]; clSetKernelExecInfo = functions[108]; clCreateSamplerWithProperties = functions[109]; clSetDefaultDeviceCommandQueue = functions[110]; clGetDeviceAndHostTimer = functions[111]; clGetHostTimer = functions[112]; clCreateProgramWithIL = functions[113]; clCloneKernel = functions[114]; clGetKernelSubGroupInfo = functions[115]; clEnqueueSVMMigrateMem = functions[116]; clSetProgramReleaseCallback = functions[117]; clSetProgramSpecializationConstant = functions[118]; clTrackLiveObjectsAltera = functions[119]; clReportLiveObjectsAltera = functions[120]; clEnqueueWaitSignalAMD = functions[121]; clEnqueueWriteSignalAMD = functions[122]; clEnqueueMakeBuffersResidentAMD = functions[123]; clCreateCommandQueueWithPropertiesAPPLE = functions[124]; clLogMessagesToSystemLogAPPLE = functions[125]; clLogMessagesToStdoutAPPLE = functions[126]; clLogMessagesToStderrAPPLE = functions[127]; clGetGLContextInfoAPPLE = functions[128]; clReleaseDeviceEXT = functions[129]; clRetainDeviceEXT = functions[130]; clCreateSubDevicesEXT = functions[131]; clEnqueueMigrateMemObjectEXT = functions[132]; clCreateAcceleratorINTEL = functions[133]; clRetainAcceleratorINTEL = functions[134]; clReleaseAcceleratorINTEL = functions[135]; clGetAcceleratorInfoINTEL = functions[136]; clGetKernelSubGroupInfoKHR = functions[137]; clGetDeviceIDsFromVA_APIMediaAdapterINTEL = functions[138]; clCreateFromVA_APIMediaSurfaceINTEL = functions[139]; clEnqueueAcquireVA_APIMediaSurfacesINTEL = functions[140]; clEnqueueReleaseVA_APIMediaSurfacesINTEL = functions[141]; clCreateEventFromEGLSyncKHR = functions[142]; clCreateFromEGLImageKHR = functions[143]; clEnqueueAcquireEGLObjectsKHR = functions[144]; clEnqueueReleaseEGLObjectsKHR = functions[145]; clCreateEventFromGLsyncKHR = functions[146]; clGetGLContextInfoKHR = functions[147]; clTerminateContextKHR = functions[148]; clGetDeviceImageInfoQCOM = functions[149]; OpenCL10 = ext.contains("OpenCL10") && CL.checkExtension("OpenCL10", CL10.isAvailable(this)); OpenCL10GL = ext.contains("OpenCL10GL") && CL.checkExtension("OpenCL10GL", CL10GL.isAvailable(this)); OpenCL11 = ext.contains("OpenCL11") && CL.checkExtension("OpenCL11", CL11.isAvailable(this)); OpenCL12 = ext.contains("OpenCL12") && CL.checkExtension("OpenCL12", CL12.isAvailable(this)); OpenCL12GL = ext.contains("OpenCL12GL") && CL.checkExtension("OpenCL12GL", CL12GL.isAvailable(this)); OpenCL20 = ext.contains("OpenCL20") && CL.checkExtension("OpenCL20", CL20.isAvailable(this)); OpenCL21 = ext.contains("OpenCL21") && CL.checkExtension("OpenCL21", CL21.isAvailable(this)); OpenCL22 = ext.contains("OpenCL22") && CL.checkExtension("OpenCL22", CL22.isAvailable(this)); cl_altera_compiler_mode = ext.contains("cl_altera_compiler_mode"); cl_altera_device_temperature = ext.contains("cl_altera_device_temperature"); cl_altera_live_object_tracking = ext.contains("cl_altera_live_object_tracking") && CL.checkExtension("cl_altera_live_object_tracking", ALTERALiveObjectTracking.isAvailable(this)); cl_amd_bus_addressable_memory = ext.contains("cl_amd_bus_addressable_memory") && CL.checkExtension("cl_amd_bus_addressable_memory", AMDBusAddressableMemory.isAvailable(this)); cl_amd_compile_options = ext.contains("cl_amd_compile_options"); cl_amd_device_attribute_query = ext.contains("cl_amd_device_attribute_query"); cl_amd_device_board_name = ext.contains("cl_amd_device_board_name"); cl_amd_device_persistent_memory = ext.contains("cl_amd_device_persistent_memory"); cl_amd_device_profiling_timer_offset = ext.contains("cl_amd_device_profiling_timer_offset"); cl_amd_device_topology = ext.contains("cl_amd_device_topology"); cl_amd_event_callback = ext.contains("cl_amd_event_callback"); cl_amd_fp64 = ext.contains("cl_amd_fp64"); cl_amd_media_ops = ext.contains("cl_amd_media_ops"); cl_amd_media_ops2 = ext.contains("cl_amd_media_ops2"); cl_amd_offline_devices = ext.contains("cl_amd_offline_devices"); cl_amd_popcnt = ext.contains("cl_amd_popcnt"); cl_amd_predefined_macros = ext.contains("cl_amd_predefined_macros"); cl_amd_printf = ext.contains("cl_amd_printf"); cl_amd_vec3 = ext.contains("cl_amd_vec3"); cl_APPLE_biased_fixed_point_image_formats = ext.contains("cl_APPLE_biased_fixed_point_image_formats"); cl_APPLE_command_queue_priority = ext.contains("cl_APPLE_command_queue_priority") && CL.checkExtension("cl_APPLE_command_queue_priority", APPLECommandQueuePriority.isAvailable(this)); cl_APPLE_command_queue_select_compute_units = ext.contains("cl_APPLE_command_queue_select_compute_units") && CL.checkExtension("cl_APPLE_command_queue_select_compute_units", APPLECommandQueueSelectComputeUnits.isAvailable(this)); cl_APPLE_ContextLoggingFunctions = ext.contains("cl_APPLE_ContextLoggingFunctions") && CL.checkExtension("cl_APPLE_ContextLoggingFunctions", APPLEContextLoggingFunctions.isAvailable(this)); cl_APPLE_fixed_alpha_channel_orders = ext.contains("cl_APPLE_fixed_alpha_channel_orders"); cl_APPLE_fp64_basic_ops = ext.contains("cl_APPLE_fp64_basic_ops"); cl_APPLE_gl_sharing = ext.contains("cl_APPLE_gl_sharing") && CL.checkExtension("cl_APPLE_gl_sharing", APPLEGLSharing.isAvailable(this)); cl_APPLE_query_kernel_names = ext.contains("cl_APPLE_query_kernel_names"); cl_arm_core_id = ext.contains("cl_arm_core_id"); cl_arm_printf = ext.contains("cl_arm_printf"); cl_ext_atomic_counters_32 = ext.contains("cl_ext_atomic_counters_32"); cl_ext_atomic_counters_64 = ext.contains("cl_ext_atomic_counters_64"); cl_ext_device_fission = ext.contains("cl_ext_device_fission") && CL.checkExtension("cl_ext_device_fission", EXTDeviceFission.isAvailable(this)); cl_ext_migrate_memobject = ext.contains("cl_ext_migrate_memobject") && CL.checkExtension("cl_ext_migrate_memobject", EXTMigrateMemobject.isAvailable(this)); cl_intel_accelerator = ext.contains("cl_intel_accelerator") && CL.checkExtension("cl_intel_accelerator", INTELAccelerator.isAvailable(this)); cl_intel_advanced_motion_estimation = ext.contains("cl_intel_advanced_motion_estimation"); cl_intel_device_partition_by_names = ext.contains("cl_intel_device_partition_by_names"); cl_intel_device_side_avc_motion_estimation = ext.contains("cl_intel_device_side_avc_motion_estimation"); cl_intel_driver_diagnostics = ext.contains("cl_intel_driver_diagnostics"); cl_intel_egl_image_yuv = ext.contains("cl_intel_egl_image_yuv"); cl_intel_media_block_io = ext.contains("cl_intel_media_block_io"); cl_intel_motion_estimation = ext.contains("cl_intel_motion_estimation"); cl_intel_packed_yuv = ext.contains("cl_intel_packed_yuv"); cl_intel_planar_yuv = ext.contains("cl_intel_planar_yuv"); cl_intel_printf = ext.contains("cl_intel_printf"); cl_intel_required_subgroup_size = ext.contains("cl_intel_required_subgroup_size"); cl_intel_simultaneous_sharing = ext.contains("cl_intel_simultaneous_sharing"); cl_intel_subgroups = ext.contains("cl_intel_subgroups") && CL.checkExtension("cl_intel_subgroups", INTELSubgroups.isAvailable(this)); cl_intel_subgroups_short = ext.contains("cl_intel_subgroups_short"); cl_intel_thread_local_exec = ext.contains("cl_intel_thread_local_exec"); cl_intel_va_api_media_sharing = ext.contains("cl_intel_va_api_media_sharing") && CL.checkExtension("cl_intel_va_api_media_sharing", INTELVAAPIMediaSharing.isAvailable(this)); cl_khr_3d_image_writes = ext.contains("cl_khr_3d_image_writes"); cl_khr_byte_addressable_store = ext.contains("cl_khr_byte_addressable_store"); cl_khr_depth_images = ext.contains("cl_khr_depth_images"); cl_khr_device_enqueue_local_arg_types = ext.contains("cl_khr_device_enqueue_local_arg_types"); cl_khr_egl_event = ext.contains("cl_khr_egl_event") && CL.checkExtension("cl_khr_egl_event", KHREGLEvent.isAvailable(this)); cl_khr_egl_image = ext.contains("cl_khr_egl_image") && CL.checkExtension("cl_khr_egl_image", KHREGLImage.isAvailable(this)); cl_khr_fp16 = ext.contains("cl_khr_fp16"); cl_khr_fp64 = ext.contains("cl_khr_fp64"); cl_khr_gl_depth_images = ext.contains("cl_khr_gl_depth_images"); cl_khr_gl_event = ext.contains("cl_khr_gl_event") && CL.checkExtension("cl_khr_gl_event", KHRGLEvent.isAvailable(this)); cl_khr_gl_msaa_sharing = ext.contains("cl_khr_gl_msaa_sharing"); cl_khr_gl_sharing = ext.contains("cl_khr_gl_sharing") && CL.checkExtension("cl_khr_gl_sharing", KHRGLSharing.isAvailable(this)); cl_khr_global_int32_base_atomics = ext.contains("cl_khr_global_int32_base_atomics"); cl_khr_global_int32_extended_atomics = ext.contains("cl_khr_global_int32_extended_atomics"); cl_khr_icd = ext.contains("cl_khr_icd"); cl_khr_image2d_from_buffer = ext.contains("cl_khr_image2d_from_buffer"); cl_khr_initialize_memory = ext.contains("cl_khr_initialize_memory"); cl_khr_int64_base_atomics = ext.contains("cl_khr_int64_base_atomics"); cl_khr_int64_extended_atomics = ext.contains("cl_khr_int64_extended_atomics"); cl_khr_local_int32_base_atomics = ext.contains("cl_khr_local_int32_base_atomics"); cl_khr_local_int32_extended_atomics = ext.contains("cl_khr_local_int32_extended_atomics"); cl_khr_mipmap_image = ext.contains("cl_khr_mipmap_image"); cl_khr_mipmap_image_writes = ext.contains("cl_khr_mipmap_image_writes"); cl_khr_priority_hints = ext.contains("cl_khr_priority_hints"); cl_khr_select_fprounding_mode = ext.contains("cl_khr_select_fprounding_mode"); cl_khr_spir = ext.contains("cl_khr_spir"); cl_khr_subgroup_named_barrier = ext.contains("cl_khr_subgroup_named_barrier"); cl_khr_terminate_context = ext.contains("cl_khr_terminate_context") && CL.checkExtension("cl_khr_terminate_context", KHRTerminateContext.isAvailable(this)); cl_khr_throttle_hints = ext.contains("cl_khr_throttle_hints"); cl_nv_compiler_options = ext.contains("cl_nv_compiler_options"); cl_nv_device_attribute_query = ext.contains("cl_nv_device_attribute_query"); cl_nv_pragma_unroll = ext.contains("cl_nv_pragma_unroll"); cl_qcom_ext_host_ptr = ext.contains("cl_qcom_ext_host_ptr") && CL.checkExtension("cl_qcom_ext_host_ptr", QCOMEXTHostPtr.isAvailable(this)); cl_qcom_ext_host_ptr_iocoherent = ext.contains("cl_qcom_ext_host_ptr_iocoherent"); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy