mirror of
https://github.com/pgvector/pgvector.git
synced 2026-07-10 06:40:57 +08:00
Test always
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@@ -88,7 +88,7 @@ jobs:
|
|||||||
- run: |
|
- run: |
|
||||||
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && ^
|
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" && ^
|
||||||
cd %TEMP% && ^
|
cd %TEMP% && ^
|
||||||
nmake /NOLOGO /F Makefile.win OPTFLAGS="/arch:AVX2" && ^
|
nmake /NOLOGO /F Makefile.win && ^
|
||||||
nmake /NOLOGO /F Makefile.win install && ^
|
nmake /NOLOGO /F Makefile.win install && ^
|
||||||
nmake /NOLOGO /F Makefile.win installcheck && ^
|
nmake /NOLOGO /F Makefile.win installcheck && ^
|
||||||
nmake /NOLOGO /F Makefile.win clean && ^
|
nmake /NOLOGO /F Makefile.win clean && ^
|
||||||
|
|||||||
@@ -8,15 +8,10 @@
|
|||||||
#include "vector.h"
|
#include "vector.h"
|
||||||
|
|
||||||
/* F16C has better performance than _Float16 (on x86-64) */
|
/* F16C has better performance than _Float16 (on x86-64) */
|
||||||
#if defined(__F16C__)
|
#if defined(__F16C__) || defined(_MSC_VER)
|
||||||
#define F16C_SUPPORT
|
|
||||||
/* TODO Improve detection */
|
|
||||||
#elif defined(_MSC_VER) && defined(__AVX2__)
|
|
||||||
#define F16C_SUPPORT
|
#define F16C_SUPPORT
|
||||||
#elif defined(__FLT16_MAX__)
|
#elif defined(__FLT16_MAX__)
|
||||||
#define FLT16_SUPPORT
|
#define FLT16_SUPPORT
|
||||||
#else
|
|
||||||
#error "Not supported"
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef FLT16_SUPPORT
|
#ifdef FLT16_SUPPORT
|
||||||
|
|||||||
Reference in New Issue
Block a user