pg.ddx.io  pgvector/pgvector GitHub issues and pull requests  
help / color / mirror / Atom feed
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 02:49:52 +0000
Message-ID: <gh-pgvector-pgvector-531-c2076257304@github.com> (raw)
In-Reply-To: <gh-pgvector-pgvector-531@github.com>
References: <gh-pgvector-pgvector-531@github.com>

@jkatz I think clang is not applying `__attribute__((target("avx512fp16")))`

I tested on an m7i instance (where `-march=native` includes `-mavx512fp16`) with clang-15
- Build pgvector with the default Makefile (which has` -march=native` in OPTFLAGS): no error
- Remove `-march=native` from Makefile: compilation errors (similar to your report)
- Replace `-march=native` with `-mavx512fp16` in Makefile: no error

With gcc-12.3, and I got no errors in all cases.

Can you try adding `-march=native` or `-mavx512fp16 `to your flags as a temporary solution?

view thread (32+ messages)  latest in thread

Message-ID: <gh-pgvector-pgvector-531-c2076257304@github.com>
Permalink:  ../gh-pgvector-pgvector-531-c2076257304@github.com/

 · 


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