Looking at the code here and the wheels here (search for "rocm4.2"), it appears that there should be an additional test for AMD Ellesmere devices, as PyTorch support for ROCm 4.2 is only available for Python versions up to 3.9.
As a result, the unsupported warning should be returned when an Ellesmere GPU is detected on Python 3.10 and later.