Translate an OpenCL constant.
In the first form, translate the OpenCL constant given as string str to its numeric value x. Example:
ocl_constant ("CL_DEVICE_TYPE_GPU") ⇒ 4
In the second form, translate the OpenCL error code given as negative integer x to its human-readable string value str. Example:
ocl_constant (-5) ⇒ CL_OUT_OF_RESOURCES
See also: oclArray.
Package: ocl