From: lucagiac81 (@lucagiac81) <noreply+lucagiac81@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] PR #531: Add AVX-512 FP16 implementation of halfvec distance functions
Date: Thu, 25 Apr 2024 20:01:30 +0000
Message-ID: <gh-pgvector-pgvector-531-rc1580058207@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-531-rc1578195282@github.com>
References: <gh-pgvector-pgvector-531@github.com>
<gh-pgvector-pgvector-531-rc1578195282@github.com>
(on src/halfutils.c)
I checked L2SquaredDistance and InnerProduct, and it is using AVX scalar instructions, at least with gcc-12. We'll try masked vector instructions to handle the loop remainder.