Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable sse41, sse42, avx, avx2 on 32-bit #397

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions fflas-ffpack/fflas-ffpack-config.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,13 +121,16 @@ namespace std _GLIBCXX_VISIBILITY(default)
#define __FFLASFFPACK_HAVE_SSE3_INSTRUCTIONS 1
#endif

/* Define if sse4.1 instructions are supported */
#ifdef __SSE4_1__
/* Define if sse4.1 instructions are supported
* Technically, sse4.1 could be supported on 32-bit but if you want to
* accelerate 64-bit simd you should start by installing a 64-bit OS
*/
#if defined(__SSE4_1__) && defined(__x86_64__)
#define __FFLASFFPACK_HAVE_SSE4_1_INSTRUCTIONS 1
#endif

/* Define if sse4.2 instructions are supported */
#ifdef __SSE4_2__
#if defined(__SSE4_2__) && defined(__x86_64__)
#define __FFLASFFPACK_HAVE_SSE4_2_INSTRUCTIONS 1
#endif

Expand All @@ -137,12 +140,12 @@ namespace std _GLIBCXX_VISIBILITY(default)
#if not defined(__CYGWIN__) or not defined(__GNUC__)

/* Define if avx instructions are supported */
#ifdef __AVX__
#if defined(__AVX__) && defined(__x86_64__)
#define __FFLASFFPACK_HAVE_AVX_INSTRUCTIONS 1
#endif

/* Define if avx2 instructions are supported */
#ifdef __AVX2__
#if defined(__AVX2__) && defined(__x86_64__)
#define __FFLASFFPACK_HAVE_AVX2_INSTRUCTIONS 1
#endif

Expand Down