Migrate remainder of THCDeviceUtils.cuh to ATen (#65472)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/65472
Test Plan: Imported from OSS
Reviewed By: H-Huang
Differential Revision: D31148181
Pulled By: ngimel
fbshipit-source-id: f777ba85b1cd8cb98b0ceb1756c558dde5862fc2