From: "Rémi Denis-Courmont" <remi@remlab.net> To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org> Subject: Re: [FFmpeg-devel] [PATCH 0/6] RISC-V initial ac3dsp Date: Thu, 15 Jun 2023 22:10:57 +0300 Message-ID: <3676327.ti00UaKT5r@basile.remlab.net> (raw) In-Reply-To: <NXzL9a2--3-9@lynne.ee> Le torstaina 15. kesäkuuta 2023, 16.57.18 EEST Lynne a écrit : > Jun 15, 2023, 12:37 by shenpeiting@eswincomputing.com: > > From: Shen Peiting <shenpeiting@eswincomputing.com> > > > > We optimized the six interfaces of AC3 init by RVV, the optimized > > performance was tested on the RISC-V ISA simulator--Spike, and the > > results were attached to each commit. > > > > shenpeiting (6): > > lavc/ac3dsp: RISC-V V ac3_exponent_min > > lavc/ac3dsp: RISC-V V float_to_fixed24 > > lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_int32 > > lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_float > > lavc/ac3dsp: RISC-V V ac3_compute_mantissa_size > > lavc/ac3dsp: RISC-V B ac3_extract_exponents > > > > libavcodec/ac3dsp.c | 2 + > > libavcodec/ac3dsp.h | 1 + > > libavcodec/riscv/Makefile | 3 + > > libavcodec/riscv/ac3dsp_init.c | 60 +++++++++ > > libavcodec/riscv/ac3dsp_rvb.S | 42 ++++++ > > libavcodec/riscv/ac3dsp_rvv.S | 225 +++++++++++++++++++++++++++++++++ > > 6 files changed, 333 insertions(+) > > create mode 100644 libavcodec/riscv/ac3dsp_init.c > > create mode 100644 libavcodec/riscv/ac3dsp_rvb.S > > create mode 100644 libavcodec/riscv/ac3dsp_rvv.S > > Could you implement checkasm for this? It shouldn't > be more than a hundred lines, and there are examples, > tests/checkasm/aacpsdsp.c being the most similar. > Since CPUs with the needed extensions aren't released, > we're not doing any FATE runs, Well... I accept hardware donations (with regular USB-C power supply and passive cooling) to back what would be the third generation of RISC-V FATE instances. Until R-V-V 1.0 hardware production substitutes unobtainium for silicium, I also accept Lichee Pi4A or equivalent hardware bundles, which would be able to run most (but definitely not all) of FFmpeg's RVV functions with a sizable amount of kludging. > and so if the results don't > match the C version, we'll end up with broken code once > they do exist. And no one wants to debug someone else's > assembly. > > Those results look far too optimistic, and I'm guessing > it's because they're using a theoretical huge vector size > limit. Could you re-test with something more realistic, > like 256-bit vectors, using checkasm --bench? It could also be that Spike counts everything as one cycle, regardless of the group multipler, not (just) the vector size. -- Rémi Denis-Courmont http://www.remlab.net/ _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2023-06-15 19:11 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-06-15 10:36 Peiting Shen 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 1/6] lavc/ac3dsp: RISC-V V ac3_exponent_min Peiting Shen 2023-06-15 18:02 ` Rémi Denis-Courmont 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 2/6] lavc/ac3dsp: RISC-V V float_to_fixed24 Peiting Shen 2023-06-15 18:06 ` Rémi Denis-Courmont 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 3/6] lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_int32 Peiting Shen 2023-06-15 19:25 ` Rémi Denis-Courmont 2023-06-16 10:15 ` 沈佩婷 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 4/6] lavc/ac3dsp: RISC-V V ac3_sum_square_butterfly_float Peiting Shen 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 5/6] lavc/ac3dsp: RISC-V V ac3_compute_mantissa_size Peiting Shen 2023-06-15 10:36 ` [FFmpeg-devel] [PATCH 6/6] lavc/ac3dsp: RISC-V B ac3_extract_exponents Peiting Shen 2023-06-15 19:18 ` Rémi Denis-Courmont 2023-06-15 13:57 ` [FFmpeg-devel] [PATCH 0/6] RISC-V initial ac3dsp Lynne 2023-06-15 19:10 ` Rémi Denis-Courmont [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=3676327.ti00UaKT5r@basile.remlab.net \ --to=remi@remlab.net \ --cc=ffmpeg-devel@ffmpeg.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel This inbox may be cloned and mirrored by anyone: git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \ ffmpegdev@gitmailbox.com public-inbox-index ffmpegdev Example config snippet for mirrors. AGPL code for this site: git clone https://public-inbox.org/public-inbox.git