add CUDA_GENERATION macro
Merge pull request #565 from cuda-geek:auto-arch