add some support for the occupancy API on ROCm (#27390)
Summary:
Unfortunately, the HIP function takes uint32_t* instead of int*, so we still need to ifdef for the time being.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27390
Differential Revision: D17768832
Pulled By: bddppq
fbshipit-source-id: c65176660cb0783a04f0a4a064f686818d759589