coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] cksum: Use AVX2 and AVX512 for speedup


From: Sam Russell
Subject: Re: [PATCH] cksum: Use AVX2 and AVX512 for speedup
Date: Tue, 26 Nov 2024 19:32:14 +0100

Nice find protecting the flag checks, thanks for your help.

Thanks also to Jeff for giving me access to test on a few different
machines with various levels of avx2/avx512 support

On Tue, Nov 26, 2024, 17:19 Pádraig Brady <P@draigbrady.com> wrote:

> On 26/11/2024 12:19, Sam Russell wrote:
> >  > Now I think what you are saying is there was no SIGILL with the
> adjusted cksum,
> > and that issue was only with the less protected benchmarking code.
> >
> > Correct, the benchmarking code has zero protections, and the servers I
> got SIGILL they were not setting the VPCLMULQDQ flag so cksum will catch
> this and fall back
>
> Thanks for the confirmation.
>
> I've tweaked NEWS a bit and also adjusted the avx2_supported() and
> avx512_supported()
> functions to avoid a build failure which I think would happen on x86 with
> gcc 8 for example,
> by protecting the builtin_cpu_supports() calls with USE_AVX2_CRC32 and
> USE_AVX512_CRC32.
> I'll push in a couple of hours.
>
> thanks!
> Pádraig
>
>
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]