[ROCM] Add ROCm support to debug_dump and enable_debug_mode (#107845)
enable_debug_mode and debug_dump are enabled in ROCM releases. Add ROCM flags to #if defines so they can be accessed by PyTorch users.
Fixes #ISSUE_NUMBER
Pull Request resolved: https://github.com/pytorch/pytorch/pull/107845
Approved by: https://github.com/pruthvistony, https://github.com/huydhn