[ROCm] allow .jenkins/pytorch/test.sh to run on centos (#42197)
Summary:
This doesn't fix any reported issue. We validate ROCm PyTorch on ubuntu and centos. For centos, we must modify the test.sh script to let it run on centos.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/42197
Reviewed By: ezyang, ngimel
Differential Revision: D23175669
Pulled By: malfet
fbshipit-source-id: 0da435de6fb17d2ca48e924bec90ef61ebbb5042