pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
962 stars 306 forks source link

ci: Add an Ubuntu:22.04 builder for RISC-V #218

Closed markdryan closed 5 months ago

markdryan commented 5 months ago

cpuinfo is built for riscv64 using a riscv64 container. binfmt_misc allows the riscv64 binaries in the container to be executed with QEMU. This is slower than cross compiling but as there's not that much code the build times are acceptable. It should be easy to expand the matrix to add CI for other architectures not natively supported by github actions.

markdryan commented 5 months ago

Sorry, pushed this too early. Will resubmit once I've tested locally.