Add const and restrict annotations to kernels and device functions.