RE: Popcount optimization using AVX512

2024-03-29 Thread Shankaran, Akash
> From: Nathan Bossart > Sent: Friday, March 29, 2024 9:17 AM > To: Amonson, Paul D > On Fri, Mar 29, 2024 at 04:06:17PM +, Amonson, Paul D wrote: >> Yeah, I understand that much, but I want to know how portable the >> XGETBV instruction is. Unless I can assume that all x86_64 systems >>

RE: Popcount optimization using AVX512

2023-11-16 Thread Shankaran, Akash
w-instructions/ -Original Message- From: Nathan Bossart Sent: Tuesday, November 7, 2023 12:15 PM To: Noah Misch Cc: Tom Lane ; Matthias van de Meent ; Amonson, Paul D ; pgsql-hackers@lists.postgresql.org; Shankaran, Akash Subject: Re: Popcount optimization using AVX512 On Mon, Nov 06, 2023

RE: Popcount optimization using AVX512

2024-04-18 Thread Shankaran, Akash
> It was brought to my attention [0] that we probably should be checking for > the OSXSAVE bit instead of the XSAVE bit when determining whether there's > support for the XGETBV instruction. IIUC that should indicate that both the > OS and the processor have XGETBV support (not just the process

RE: SIMD optimization for list_sort

2025-03-01 Thread Shankaran, Akash
>> > I don't think "another extension might use it someday" makes a very strong >> > case, >> > particularly for something that requires a new dependency. >> >> The x86-simdsort library is an optional dependency in Postgres. Also the new >> list sort implementation which uses the x86-simdsort lib