The [CUDA SDK](https://docs.nvidia.com/cuda/) documentation gives you detailed information about how to develop CUDA code.
There are also excellent articles in the web for learning CUDA like [An Even Easier Introduction to CUDA](https://developer.nvidia.com/blog/even-easier-introduction-cuda/) or [An Introduction to CUDA-Aware MPI](https://developer.nvidia.com/blog/introduction-cuda-aware-mpi/).