when to use get_global id and get_local id in opencl?

thanks