A very literal walkthrough of the default code in CUDA Toolkit 9.0. Check out cudaeducation.com to install and run CUDA Toolkit 9.0 on a Windows system using Visual Studio Community 2017.
Remember to donate to the cause. Link at cudaeducation.com