Upload coredump from ROCm and print the stacktrace (#94938)
There was a burst of `test_cuda` SIGSEGV or SIGIOT from ROCm today, for example https://hud.pytorch.org/pytorch/pytorch/commit/5705199fb10ae96f16a8444b0a7cb59e5629f81c. So, I'm trying to apply the same logic from Linux [test workflows](https://github.com/pytorch/pytorch/blob/master/.github/workflows/_linux-test.yml#L248-L261) here to uploading the core dump to GitHub and print the stack trace. This would help debug similar issues in the future.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/94938
Approved by: https://github.com/ZainRizvi