News for hackers. Stuff that matters.
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by kragen on Tuesday January 16, 2024 @02:57AM (#39010659)
have you tested its rv64v vector performance
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by BarsMonster on Tuesday January 16, 2024 @03:09AM (#39010732)
Not (yet)
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by kragen on Tuesday January 16, 2024 @03:31AM (#39010855)
that might be the hotspot of most everyday user interactions: decoding video, compositing windows, scrolling panes, redrawing windows, drawing text glyphs
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by camel-cdr on Tuesday January 16, 2024 @05:16AM (#39011606)
Kinda hard to compare it against anything, but here are some benchmarks: https://camel-cdr.github.io/rvv-bench-results/milkv_pioneer/...
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by kragen on Tuesday January 16, 2024 @06:48AM (#39012241)
this is fantastic! they're the first sophon benchmark results i've seen, and they're far more comprehensive than most benchmark results of any kind

have you run into any toolchain difficulties due to the 0.7.1 nature of the rvv?

Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by camel-cdr on Tuesday January 16, 2024 @07:51AM (#39012725)
Yes.

I'm using the old gnu toolchain branch from brucehoult and write the benchmarks such that they work in rvv 1.0 and rvv 0.7.1. To help with that I've got a gnu assembler macro file that does 1 to 1 instruction translation when possible and for the other cases I need to #if/#else/#endif.

I'm working on rvv unicode conversions, and plan to release a blog post/article with benchmarks and explanation soon. The problem is that I've uses c intrinsics to write it, so I need to manually translate the assembly code to rvv 0.7.1 compatible code.

That entails

    vsetivli -> vsetvli
    vle64 -> vle32
    vmvNr -> vmv.v.v & 2 vsetvli
    vzext.vN -> N/2 vwaddu & N/2+1 vsetvli
in my case.

Also, the board I've got access to (it might be an eval board, idk) has a bug in vredmax, so I also needed to adjust the code to not use that. (I've yet to investigate that further)

Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by kragen on Tuesday January 16, 2024 @08:11AM (#39012872)
thanks, this information is fantastic

i really hope to have a chance to read your blog post! i haven't tried rvv programming at all

Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by camel-cdr on Saturday January 27, 2024 @04:11PM (#39159876)
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by adgjlsfhk1 on Tuesday January 16, 2024 @09:06AM (#39013375)
this is a great resource! any chance you can add a matmul benchmark to this?
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by camel-cdr on Tuesday January 16, 2024 @09:23AM (#39013518)
I was thinking about that, but matmul is so too hardware specific (cache sizes, and the like), and I'm not confident I can get an implementation that can get close to max performance.
Re:Lichee Console 4A – RISC-V mini laptop: Review, benchmark... by adgjlsfhk1 on Tuesday January 16, 2024 @09:32AM (#39013634)
getting big matmul good is hard, but up to about 100x100 you don't need to worry about cache sizes, it's all about the microkernel