Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: James Almer <jamrial@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Subject: Re: [FFmpeg-devel] [PATCH v3] swscale/x86/rgb2rgb: add AVX512ICL versions of shuffle_bytes
Date: Mon, 3 Feb 2025 10:20:26 -0300
Message-ID: <7a6f83c7-da30-497b-aef7-7426efddca55@gmail.com> (raw)
In-Reply-To: <CA+-x59bct+fUA-yXg14fFMs31YqT47R0OUNvsvrJgpmxZAJ5PQ@mail.gmail.com>


[-- Attachment #1.1.1: Type: text/plain, Size: 2191 bytes --]

On 1/29/2025 10:03 AM, Shreesh Adiga wrote:
> Hi Andreas,
> 
> I am not sure if that is needed. I can add the data observed on my machine
> (AMD 7950x Zen 4),
> I think this will vary from machine to machine. It is expected to be around
> 2x
> compared to AVX2 and there is no core change apart from processing the
> scalar loop with masked instructions.
> 
> The data doesn't entirely look consistent as per my expectations.
> All the shuffle variants are equivalent in the work they do, yet the
> speedups
> are not consistent as per the report.
> 
> shuffle_bytes_0321_c:                                   56.5 ( 1.00x)
> shuffle_bytes_0321_ssse3:                               15.2 ( 3.70x)
> shuffle_bytes_0321_avx2:                                10.2 ( 5.51x)
> shuffle_bytes_0321_avx512icl:                            9.2 ( 6.11x)
> shuffle_bytes_1230_c:                                   84.5 ( 1.00x)
> shuffle_bytes_1230_ssse3:                               14.2 ( 5.93x)
> shuffle_bytes_1230_avx2:                                15.2 ( 5.54x)
> shuffle_bytes_1230_avx512icl:                           11.2 ( 7.51x)
> shuffle_bytes_2103_c:                                   48.5 ( 1.00x)
> shuffle_bytes_2103_ssse3:                               21.2 ( 2.28x)
> shuffle_bytes_2103_avx2:                                13.8 ( 3.53x)
> shuffle_bytes_2103_avx512icl:                            9.2 ( 5.24x)
> shuffle_bytes_3012_c:                                   84.5 ( 1.00x)
> shuffle_bytes_3012_ssse3:                               14.2 ( 5.93x)
> shuffle_bytes_3012_avx2:                                16.2 ( 5.20x)
> shuffle_bytes_3012_avx512icl:                           10.2 ( 8.24x)
> shuffle_bytes_3210_c:                                   89.2 ( 1.00x)
> shuffle_bytes_3210_ssse3:                               24.2 ( 3.68x)
> shuffle_bytes_3210_avx2:                                16.2 ( 5.49x)
> shuffle_bytes_3210_avx512icl:                            9.2 ( 9.65x)
> 
> I can add the details to commit message if you can confirm if it is needed.
> 
> Thanks,
> Shreesh

Added the benchmarks and pushed the patch. Thanks.


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]

[-- Attachment #2: Type: text/plain, Size: 251 bytes --]

_______________________________________________
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".

      reply	other threads:[~2025-02-03 13:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-28 15:48 Shreesh Adiga
2025-01-29 12:16 ` Andreas Rheinhardt
2025-01-29 13:03   ` Shreesh Adiga
2025-02-03 13:20     ` James Almer [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=7a6f83c7-da30-497b-aef7-7426efddca55@gmail.com \
    --to=jamrial@gmail.com \
    --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