Supported building debug version.
authorXianyi Zhang <xianyi@iscas.ac.cn>
Tue, 22 Feb 2011 05:40:40 +0000 (13:40 +0800)
committerXianyi Zhang <xianyi@iscas.ac.cn>
Tue, 22 Feb 2011 05:40:40 +0000 (13:40 +0800)
Makefile.rule
README

index ecafe0c..2fc8261 100644 (file)
@@ -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 0b31ad2..1a10cb1 100644 (file)
--- 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