pytorch / cpuinfo

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

Add starfive-visionfive-v2 as example rv64 board #200

Open prashanthswami opened 8 months ago

prashanthswami commented 8 months ago

We should ideally have at least one RISC-V board in our test group to limit future regression. Further work will have to be done to actually enable a toolchain that can build this test. The Starfive VisionFive V2 board was chosen here as an open-source board that has been referenced in the public issues.

Confirmed success of this mocked device test on a RISC-V QEMU instance.

prashanthswami commented 8 months ago

For review: @malfet CC: @GlassOfWhiskey - the riscv_hwprobe mock stuff should merge cleanly with your current PR, but the hwcap mock may conflict slightly. Need to also see if I should guard it with Linux 6.4 based on the discussion thread there.