Cargo Features

[dependencies]
cl-sys = { version = "0.4.3", default-features = false, features = ["opencl_version_1_1", "opencl_version_1_2", "opencl_version_2_0", "opencl_version_2_1", "opencl_vendor_mesa"] }
opencl_version_1_1 default

Specifies the OpenCL version supported by the library being used. Generally,
OpenCL v2.0+ support is still sparse.

opencl_version_1_2 default

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

opencl_version_2_0

Affects cl_h::clCreateCommandQueueWithProperties, cl_h::clCreatePipe, cl_h::clGetPipeInfo, cl_h::clSVMAlloc, cl_h::clSVMFree, cl_h::clCreateSamplerWithProperties, cl_h::clSetKernelArgSVMPointer, cl_h::clSetKernelExecInfo, cl_h::clEnqueueSVMFree, cl_h::clEnqueueSVMMemcpy, cl_h::clEnqueueSVMMemFill, cl_h::clEnqueueSVMMap, cl_h::clEnqueueSVMUnmap

opencl_version_2_1

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

opencl_version_2_2 opencl_vendor_mesa
default = opencl_version_1_1, opencl_version_1_2

opencl_version_1_1 is unused, disabling it has no effect.