timescale / pgvectorscale

A complement to pgvector for high performance, cost efficient vector search on large workloads.
PostgreSQL License
1.38k stars 58 forks source link

Panic if AVX or FMA is missing #119

Closed cevian closed 3 months ago

cevian commented 3 months ago

Our compilation on x86 enables fma and avx in target-feature. We should panic if the running CPU is actually missing the feature because otherwise the behavior is undefined and in practice we've seen segfaults.

The panic will be translated to a Postgres error.

cevian commented 3 months ago

see https://github.com/timescale/pgvectorscale/issues/115#issuecomment-2272483127 as well for more context