Add HIP to the memory profiler device list (#38795)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/38795
Add HIP alongside CUDA
Test Plan: rocm CI
Differential Revision: D21665627
Pulled By: ilia-cher
fbshipit-source-id: 76ddf0a45094a9003f1d0d4ac94cf5e970535fd1