Cargo Features

[dependencies]
opencl-heads = { version = "0.2.1", default-features = false, features = ["cl_1_1", "cl_1_2", "cl_2_0", "cl_2_1", "cl_2_2", "cl_3_0", "depr_1_0", "depr_1_1", "depr_2_0", "opencl_version_1_1", "all", "opencl_version_1_2", "opencl_version_2_0", "opencl_version_2_1", "opencl_version_2_2", "1x", "2x", "3x", "deprecated"] }
cl_1_1 default 1x? all? opencl_version_1_1?

Updated listing of OpenCL versions.

Affects cl::clCreateSubBuffer, cl::clSetMemObjectDestructorCallback, cl::clCreateUserEvent, cl::clSetUserEventStatus, cl::clSetEventCallback, cl::clEnqueueReadBufferRect, cl::clEnqueueWriteBufferRect, cl::clEnqueueCopyBufferRect

cl_1_2 default 1x? all? opencl_version_1_2?

Affects cl::clCreateSubDevices, cl::clRetainDevice, cl::clReleaseDevice, cl::clCreateImage, cl::clCreateProgramWithBuiltInKernels, cl::clCompileProgram, cl::clLinkProgram, cl::clUnloadPlatformCompiler, cl::clGetKernelArgInfo, cl::clEnqueueFillBuffer, cl::clEnqueueFillImage, cl::clEnqueueMigrateMemObjects, cl::clEnqueueMarkerWithWaitList, cl::clEnqueueBarrierWithWaitList, cl::clGetExtensionFunctionAddressForPlatform

cl_2_0 2x? all? opencl_version_2_0?

Affects cl::clCreateCommandQueueWithProperties, cl::clCreatePipe, cl::clGetPipeInfo, cl::clSVMAlloc, cl::clSVMFree, cl::clCreateSamplerWithProperties, cl::clEnqueueSVMFree, cl::clEnqueueSVMMemcpy, cl::clEnqueueSVMMemFill, cl::clEnqueueSVMMap, cl::clEnqueueSVMUnmap

cl_2_1 2x? all? opencl_version_2_1?

Affects cl::clSetDefaultDeviceCommandQueue, cl::clGetDeviceAndHostTimer, cl::clGetHostTimer, cl::clCreateProgramWithIL, cl::clCloneKernel, cl::clGetKernelSubGroupInfo, cl::clEnqueueSVMMigrateMem

cl_2_2 2x? all? opencl_version_2_2?

Affects cl::clSetProgramReleaseCallback, cl::clSetProgramSpecializationConstant

cl_3_0 3x? all?

Affects cl::clSetContextDestructorCallback, cl::clCreateBufferWithProperties, cl::clCreateImageWithProperties

depr_1_0 deprecated?

Deprecated OpenCL versions.

Affects cl::clSetCommandQueueProperty

depr_1_1 deprecated?

Affects cl::clCreateImage2D, cl::clCreateImage3D, cl::clEnqueueMarker, cl::clEnqueueWaitForEvents, cl::clEnqueueBarrier, cl::clUnloadCompiler, cl::clGetExtensionFunctionAddress

depr_2_0 1x? deprecated?

Affects cl::clCreateCommandQueue, cl::clCreateSampler, cl::clEnqueueTask

opencl_version_1_1 = cl_1_1

For drop-in replacement of cl-sys.

default = cl_1_1, cl_1_2

These default features are set whenever opencl-heads is added without default-features = false somewhere in the dependency tree.

all = cl_1_1, cl_1_2, cl_2_0, cl_2_1, cl_2_2, cl_3_0, deprecated
opencl_version_1_2 = cl_1_2
opencl_version_2_0 = cl_2_0
opencl_version_2_1 = cl_2_1
opencl_version_2_2 = cl_2_2
1x = cl_1_1, cl_1_2, depr_2_0
2x = cl_2_0, cl_2_1, cl_2_2
3x = cl_3_0
deprecated all? = depr_1_0, depr_1_1, depr_2_0