pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <hlinnaka@iki.fi>
To: Simon Riggs <simon@2ndQuadrant.com>
Cc: pgsql-hackers <pgsql-hackers@postgresql.org>
Subject: Re: [COMMITTERS] pgsql: Use Intel SSE 4.2 CRC instructions where available.
Date: Tue, 14 Apr 2015 18:34:31 +0300
Message-ID: <552D3387.7090807@iki.fi> (raw)
In-Reply-To: <CA+U5nM+Aq5tKb7qHZ7rS0B9KNX6HDYiEgGHem-bP6s3rq=HGDA@mail.gmail.com>
References: <E1Yi1Wq-0000tM-Kk@gemulon.postgresql.org>
	<CA+U5nM+Aq5tKb7qHZ7rS0B9KNX6HDYiEgGHem-bP6s3rq=HGDA@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>

On 04/14/2015 06:28 PM, Simon Riggs wrote:
> On 14 April 2015 at 10:09, Heikki Linnakangas <heikki.linnakangas@iki.fi> wrote:
>
>> Abhijit Menon-Sen, heavily modified by me, reviewed by Andres Freund.
>
> Did the heavy modifications have any affect on the patch behaviour, or
> was this just related to where you would like to put the code?

Didn't affect behaviour.

Hmm, the buildfarm animals using Intel C compiler didn't like this 
patch. The problem seems to be that unlike on gcc and clang, icc always 
has the SSE 4.2 intrinsics (_mm_crc32_u64, _mm_crc32_u8 etc.), even when 
the target CPU architecture is not SSE 4.2. On gcc/clang, those 
intrinsics are not defined unless you build with -msse4.2.

I'll try to find a fix. I think we could use the __SSE4_2__ define to 
check whether SSE4.2 is targeted. Or we can punt and always build the 
version with the runtime check, unless overridden manually at configure 
command line.

- Heikki



-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers



view thread (6+ messages)  latest in thread

Message-ID: <552D3387.7090807@iki.fi>
Permalink:  ../552D3387.7090807@iki.fi/
Also on:    postgresql.org/message-id/552D3387.7090807@iki.fi

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: hlinnaka@iki.fi, simon@2ndQuadrant.com, pgsql-hackers@postgresql.org
  Subject: Re: [COMMITTERS] pgsql: Use Intel SSE 4.2 CRC instructions where available.
  In-Reply-To: <552D3387.7090807@iki.fi>
  References: <E1Yi1Wq-0000tM-Kk@gemulon.postgresql.org> <CA+U5nM+Aq5tKb7qHZ7rS0B9KNX6HDYiEgGHem-bP6s3rq=HGDA@mail.gmail.com> <552D3387.7090807@iki.fi>

* 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