pg.ddx.io pgsql-hackers@postgresql.org mailing list archive
help / color / mirror / Atom feed From: Nathan Bossart <nathandbossart@gmail.com>
To: John Naylor <johncnaylorls@gmail.com>
Cc: Ants Aasma <ants@cybertec.at>
Cc: pgsql-hackers@postgresql.org
Subject: Re: add AVX2 support to simd.h
Date: Thu, 21 Mar 2024 13:38:23 -0500
Message-ID: <20240321183823.GA1800896@nathanxps13> (raw )
In-Reply-To: <20240321170944.GA1767527@nathanxps13 >
References: <20240319020341.GA823987@nathanxps13 >
<CANWCAZbY8fxmz6TRXmPz_s1VOZQQgTkfvayaXvWbqQnq2D849g@mail.gmail.com >
<20240319031601.GA828141@nathanxps13 >
<CANWCAZafKPUBYdNdtqZLVxVJhSn-ONeo_tp1FsODcn7udjKwRQ@mail.gmail.com >
<20240319163033.GA952199@nathanxps13 >
<CANWCAZbphuJTDjusRBGWk1R-z8Z-kvjMjsC5X4A6rjTN54MOFw@mail.gmail.com >
<20240320143116.GA1313857@nathanxps13 >
<20240320195513.GA1618413@nathanxps13 >
<CANWCAZYfUv3iN2Vx--tmQP9WU6xwfU8d=gA7LoFXOYP9-wo8Hg@mail.gmail.com >
<20240321170944.GA1767527@nathanxps13 >
On Thu, Mar 21, 2024 at 12:09:44PM -0500, Nathan Bossart wrote:
> On Thu, Mar 21, 2024 at 11:30:30AM +0700, John Naylor wrote:
>> Further, now that the algorithm is more SIMD-appropriate, I wonder
>> what doing 4 registers at a time is actually buying us for either SSE2
>> or AVX2. It might just be a matter of scale, but that would be good to
>> understand.
>
> I'll follow up with these numbers shortly.
It looks like the 4-register code still outperforms the 2-register code,
except for a handful of cases where there aren't many elements.
--
Nathan Bossart
Amazon Web Services: https://aws.amazon.com
Attachments:
2reg.jpg (image/jpeg, 30.0K) download
view image
2reg_extended.jpg (image/jpeg, 23.8K) download
view image
view thread (48+ messages) latest in thread
Message-ID: <20240321183823.GA1800896@nathanxps13>
Permalink: ../20240321183823.GA1800896@nathanxps13/
Also on: postgresql.org/message-id/20240321183823.GA1800896@nathanxps13
copy link · copy postgr.es
reply Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-hackers@postgresql.org
Cc: nathandbossart@gmail.com, johncnaylorls@gmail.com, ants@cybertec.at
Subject: Re: add AVX2 support to simd.h
In-Reply-To: <20240321183823.GA1800896@nathanxps13>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox