How about this guide:

https://docs.nvidia.com/cuda/cuda-programming-guide/pdf/cuda...