Refs #401. Added NO_AVX2 flag for old binutils (e.g. RHEL6)

This commit is contained in:
Zhang Xianyi
2014-07-16 08:37:55 +08:00
parent 3dd094f17a
commit c94762bb56
4 changed files with 35 additions and 1 deletions
+4
View File
@@ -66,7 +66,11 @@ extern gotoblas_t gotoblas_BOBCAT;
extern gotoblas_t gotoblas_SANDYBRIDGE;
extern gotoblas_t gotoblas_BULLDOZER;
extern gotoblas_t gotoblas_PILEDRIVER;
#ifdef NO_AVX2
#define gotoblas_HASWELL gotoblas_SANDYBRIDGE
#else
extern gotoblas_t gotoblas_HASWELL;
#endif
#else
//Use NEHALEM kernels for sandy bridge
#define gotoblas_SANDYBRIDGE gotoblas_NEHALEM