mirror of
https://github.com/pgvector/pgvector.git
synced 2026-12-04 00:08:30 +00:00
Always use CPU dispatching on x86-64 when supported and not disabled [skip ci]
This commit is contained in:
1 parent
d76e4cbfb4
commit
7bab21a2eb
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -26,7 +26,7 @@
|
||||
#endif
|
||||
|
||||
/* Disable for LLVM due to crash with bitcode generation */
|
||||
#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__POPCNT__) && !defined(__llvm__)
|
||||
#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__llvm__)
|
||||
#define BIT_TARGET_CLONES __attribute__((target_clones("default", "popcnt")))
|
||||
#else
|
||||
#define BIT_TARGET_CLONES
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
#include "halfvec.h" /* for USE_TARGET_CLONES */
|
||||
#include "vecutils.h"
|
||||
|
||||
#if defined(USE_TARGET_CLONES) && defined(__x86_64__) && !defined(__FMA__)
|
||||
#if defined(USE_TARGET_CLONES) && defined(__x86_64__)
|
||||
#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
|
||||
|
||||
Reference in new issue
Block a user