mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-11 07:06:57 +08:00
Started ARM support [skip ci]
This commit is contained in:
@@ -31,6 +31,9 @@
|
|||||||
|
|
||||||
#if defined(__x86_64__) && defined(__gnu_linux__) && defined(__has_attribute) && __has_attribute(target_clones)
|
#if defined(__x86_64__) && defined(__gnu_linux__) && defined(__has_attribute) && __has_attribute(target_clones)
|
||||||
#define RUNTIME_DISPATCH __attribute__((target_clones("default", "avx", "fma", "avx512f")))
|
#define RUNTIME_DISPATCH __attribute__((target_clones("default", "avx", "fma", "avx512f")))
|
||||||
|
#elif defined(__aarch64__) && defined(__gnu_linux__) && defined(__has_attribute) && __has_attribute(target_clones)
|
||||||
|
/* TODO Fix error: target does not support function version dispatcher */
|
||||||
|
#define RUNTIME_DISPATCH __attribute__((target_clones("default", "arch=armv8.5-a")))
|
||||||
#else
|
#else
|
||||||
#define RUNTIME_DISPATCH
|
#define RUNTIME_DISPATCH
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user