pothos-opencl: hooks for global and production factor