Commit 682b1eac authored by Lorenz Huedepohl's avatar Lorenz Huedepohl

Check if either AVX or SSE are supported in AVX/SSE kernel

If not, abort with an #error (this means that configure failed to detect
the lack of AVX support for C++)
parent f23d3870
......@@ -59,6 +59,12 @@
#include <complex>
#include <x86intrin.h>
#ifndef __AVX__
#ifndef __SSE3__
#error Neither SSE3 nor AVX are supported, cannot compile file this file
#endif
#endif
#define __forceinline __attribute__((always_inline))
#ifdef __USE_AVX128__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment