BINARY_DEFINED = 1
endif
-ifeq ($(CORE), LOONGSON3A)
+ifeq ($(CORE), LOONGSON3A)
+CCOMMON_OPT += -march=mips64
+FCOMMON_OPT += -march=mips64
+endif
+
+ifeq ($(CORE), LOONGSON3B)
CCOMMON_OPT += -march=mips64
FCOMMON_OPT += -march=mips64
endif
CCOMMON_OPT += -DSMP_SERVER
ifeq ($(ARCH), mips64)
+ifneq ($(CORE), LOONGSON3B)
USE_SIMPLE_THREADED_LEVEL3 = 1
endif
+endif
ifeq ($(USE_OPENMP), 1)
# USE_SIMPLE_THREADED_LEVEL3 = 1
return ret;
}
-//#if defined(LOONGSON3A) || defined(LOONGSON3B)
+#if defined(LOONGSON3A) || defined(LOONGSON3B)
+#define WHEREAMI
static inline int WhereAmI(void){
int ret=0;
__asm__ __volatile__(".set push \n"
return ret;
}
-//#endif
+#endif
static inline int blas_quickdivide(blasint x, blasint y){
return x / y;
#endif
#if defined(LOONGSON3B)
-#define PAGESIZE (16UL << 10)
-#define FIXED_PAGESIZE (16UL << 10)
+#define PAGESIZE (32UL << 10)
+#define FIXED_PAGESIZE (32UL << 10)
#endif
#ifndef PAGESIZE