We’ll be running all the following steps inside a ubuntu:latest
docker container. This will help guarantee reproducibility. I’ll be using podman
locally, but you can use docker
with exactly the same steps. Do not forget to docker pull ubuntu:latest
to have the latest version of that container locally.
Get the sources for PyTorch:
git clone --recursive [email protected]:pytorch/pytorch.git
As some riscv64 binaries will be run in the build and test process, you need to install QEMU on your host machine: