Add more docstrings in backend_cuda.
Add initial code for partial reductions on the GPU.