[inductor] Log triton kernel source and metadata on failure (#120494)
If Triton compilation fails it's much easier to debug when given the
kernel source directly, versus a PyTorch repro.
This would have helped root cause
https://github.com/pytorch/pytorch/issues/118589 almost immediately
Differential Revision: [D54119568](https://our.internmc.facebook.com/intern/diff/D54119568/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120494
Approved by: https://github.com/peterbell10, https://github.com/eellison, https://github.com/jansel