mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 00:08:30 +00:00
Switched to arch=x86-64-v* targets when available [skip ci]
This commit is contained in:
1 parent
13f13fb6bb
commit
40777a2f5e
1 file changed
+4
@@ -6,7 +6,11 @@
|
||||
#include "vecutils.h"
|
||||
|
||||
#if defined(USE_TARGET_CLONES) && !defined(__FMA__)
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 12) || (defined(__clang_major__) && __clang_major__ >= 18)
|
||||
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "arch=x86-64-v3", "arch=x86-64-v4")))
|
||||
#else
|
||||
#define VECTOR_TARGET_CLONES __attribute__((target_clones("default", "fma", "avx512f")))
|
||||
#endif
|
||||
#else
|
||||
#define VECTOR_TARGET_CLONES
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user