Test SIMD

This commit is contained in:
Andrew Kane
2024-04-07 22:15:32 -07:00
parent 06309f5d07
commit 28367c8f30
2 changed files with 2 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ REGRESS_OPTS = --inputdir=test --load-extension=$(EXTENSION)
# For /arch flags
# https://learn.microsoft.com/en-us/cpp/build/reference/arch-minimum-cpu-architecture
OPTFLAGS =
OPTFLAGS = /arch:AVX2
# For auto-vectorization:
# - MSVC (needs /O2 /fp:fast) - https://learn.microsoft.com/en-us/cpp/parallel/auto-parallelization-and-auto-vectorization?#auto-vectorizer

View File

@@ -8,7 +8,7 @@
#include "vector.h"
/* F16C has better performance than _Float16 (on x86-64) */
#if defined(__F16C__)
#if defined(__F16C__) || defined(__AVX2__)
#define F16C_SUPPORT
#elif defined(__FLT16_MAX__)
#define FLT16_SUPPORT