Is there a way to build pytorch on ppc64le and s390x without cpuinfo

I hit an issue with building cpuinfo on ppc64le and s390x as a dependency of pytorch.

I filed an issue against the cpuinfo repo: Compile fails with clang 16 · Issue #171 · pytorch/cpuinfo · GitHub

The maintainer of cpuinfo replied that cpuinfo doesn’t work on these platforms, which I was aware of, however I was able to get it to build after a little more investigation.

My outstanding question that wasn’t answered is whether there is a way to build pytorch without cpuinfo on these platforms, or if it remains a dependency for some reason.