From: rbalamohan (@rbalamohan) <noreply+rbalamohan@github.com>
To: pgvector/pgvector <noreply+pgvector-pgvector@github.com>
Subject: Re: [pgvector/pgvector] issue #832: Perf: SIMD optimization for cosine similarity in pgvector
Date: Fri, 02 May 2025 07:58:39 +0000
Message-ID: <gh-pgvector-pgvector-832-c2846602357@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-832@github.com>
References: <gh-pgvector-pgvector-832@github.com>
Looks like it is auto vectorized?
`make CFLAGS="-O3 -Rpass=loop-vectorize -ftree-vectorize -fassociative-math -fno-signed-zeros -fno-trapping-math"`
That mentioned the loop `for (int i = 0; i < dim; i++)` with remark `remark: vectorized loop`.
If so, may be this ticket can be closed.