CUDA C++: Using __CUDA_ARCH__ the Right Way

TL;DR: Read this section of the CUDA C++ Programming Guide before using the __CUDA_ARCH__ macro so that you’re aware of cases where it’s problematic.