CUDA/OpenCL: support for Globals