diff --git a/Readme.md b/Readme.md index e08f1dc2..4d991bf6 100644 --- a/Readme.md +++ b/Readme.md @@ -139,9 +139,17 @@ make install CXXSTD="-std=c++98" (default) make install CXXSTD="-std=c++11" ``` -Users must make sure the setting is consistent to dependent libraries during compilation, such Boost, Lemon, etc. +Users must make sure the setting is consistent to dependent libraries during compilation, such as Boost, Lemon, etc. For example, if Boost is compiled with "clang++ -stdlib=libstdc++ -std=c++98", the same setting should be used for components dependent to Boost. +### 4. Customize OPENBLAS options + +* There is a third party OpenBlas required by some other third party packages, such as Csdp and liblinear. OPENBLAS option is used to control whether compiling these packages. + +If you do not need these packages, set OPENBLAS=0 (default); +otherwise, set OPENBLAS=1. +The default version of OpenBlas is not very stable for cross platforms, which often results in compiling errors. + ## Examples In the subdirectories of source code, there are test folders including test/example programs. diff --git a/limbo/thirdparty/Makefile b/limbo/thirdparty/Makefile index d8adc404..7efa0bb0 100644 --- a/limbo/thirdparty/Makefile +++ b/limbo/thirdparty/Makefile @@ -17,6 +17,8 @@ CTHREADPOOL_LIB = $(LIMBO_ROOT_DIR)/lib/libthpool.a # Compilation Flags # ========================================================================== +# default OPENBLAS is off +OPENBLAS = 0 # default DBG is off DBG = 0 @@ -33,8 +35,13 @@ endif # Standard Setting # ========================================================================== +ifeq ($(OPENBLAS), 1) all: $(CSDP_LIB) $(OPENBLAS_LIB) $(LIBLINEAR_LIB) $(CTHREADPOOL_LIB) - @echo ">> building default" + @echo ">> building default with OPENBLAS on" +else +all: $(CTHREADPOOL_LIB) + @echo ">> building default with OPENBLAS off" +endif $(OPENBLAS_LIB): @echo ">> building OpenBLAS"