From 854137e0fd70994a69b0af4bd8ac9418259104e0 Mon Sep 17 00:00:00 2001 From: Xianyi Zhang Date: Tue, 22 Feb 2011 13:40:40 +0800 Subject: [PATCH] Supported building debug version. --- Makefile.rule | 6 ++++++ README | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.rule b/Makefile.rule index ecafe0cdc..2fc82619b 100644 --- a/Makefile.rule +++ b/Makefile.rule @@ -89,7 +89,13 @@ VERSION = 0.1 # UTEST_CHECK = 1 # Common Optimization Flag; -O2 is enough. +# DEBUG = 1 + +ifeq ($(DEBUG), 1) +COMMON_OPT += -g +else COMMON_OPT += -O2 +endif # Profiling flags COMMON_PROF = -pg diff --git a/README b/README index 0b31ad240..1a10cb198 100644 --- a/README +++ b/README @@ -17,6 +17,9 @@ examples: On X86 box, compile this library for loongson3a CPU. make BINARY=64 CC=mips64el-unknown-linux-gnu-gcc FC=mips64el-unknown-linux-gnu-gfortran HOSTCC=gcc TARGET=LOONGSON3A +3)Debug version +make DEBUG=1 + 3.Support CPU & OS Please read GotoBLAS_01Readme.txt @@ -39,7 +42,7 @@ OPENBLAS_NUM_THREAD is prior to OMP_NUM_THREADS. Please add a issue in https://github.com/xianyi/OpenBLAS/issues 6.To-Do List: -Optimize on ICT Loongson 3A CPU +Optimization on ICT Loongson 3A CPU 7.Contact OpenBLAS users mailing list: http://list.rdcps.ac.cn/mailman/listinfo/openblas