diff --git a/common_x86_64.h b/common_x86_64.h index 0f842ee94..ae9b88718 100644 --- a/common_x86_64.h +++ b/common_x86_64.h @@ -46,6 +46,7 @@ #define __volatile__ #endif +/* #ifdef HAVE_SSE2 #define MB __asm__ __volatile__ ("mfence"); #define WMB __asm__ __volatile__ ("sfence"); @@ -53,6 +54,10 @@ #define MB #define WMB #endif +*/ + +#define MB +#define WMB static void __inline blas_lock(volatile BLASULONG *address){ @@ -99,6 +104,8 @@ static __inline void cpuid(int op, int *eax, int *ebx, int *ecx, int *edx){ : "0" (op)); } +/* + #define WHEREAMI static inline int WhereAmI(void){ @@ -111,6 +118,8 @@ static inline int WhereAmI(void){ return apicid; } +*/ + #ifdef CORE_BARCELONA #define IFLUSH gotoblas_iflush() #define IFLUSH_HALF gotoblas_iflush_half() diff --git a/driver/others/parameter.c b/driver/others/parameter.c index a0a8b5188..c6c7301e8 100644 --- a/driver/others/parameter.c +++ b/driver/others/parameter.c @@ -251,7 +251,9 @@ void blas_set_parameter(void){ env_var_t p; int factor; +#if !defined(BULLDOZER) int size = get_L2_size(); +#endif #if defined(CORE_KATMAI) || defined(CORE_COPPERMINE) || defined(CORE_BANIAS) size >>= 7;