[ROCm] Initial ir.Scan/aten.cumsum lowering support on ROCm (#119369)
It was noted in https://github.com/pytorch/pytorch/pull/117992 that ROCm is still falling back to eager with scan's with inductor.
Initially as part of https://github.com/pytorch/pytorch/pull/106581 ROCm was disabled on this feature due to lack of triton support.
This PR will enable support for lowering scan operations on ROCm.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/119369
Approved by: https://github.com/peterbell10