Hi all,
I was trying some ideas about making CUDA operations faster, and realized it would be very helpful to look at the PTX assembly code generated from .cu files.
Is there an easy way to extract PTX from the compiled PyTorch library, or find the exact nvcc command used to compile each .cu file?  (If I could find the command, I think I can add -ptx option to generate PTX output.)
Also, when I run nvvp (NVidia visual profiler) and examine individual kernel calls, I see this message:

No source File Mapping
The source-assembly viewer could not be shown because source-file mappings are missing from the kernel.
You can enable source-file mappings by using the -lineinfo flag when compiling the kernels.

…so, how can I add -lineinfo to nvcc command-line options when building PyTorch?