Add device debug info to CUDA build (#31929)
Summary:
Also print NVCC flags in the summary
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31929
Differential Revision: D19312079
Pulled By: ezyang
fbshipit-source-id: cd20d5a385f61174c1907a9ad883c04de66ef037