Skip to content

Commit

Permalink
turn off openblas and related packages by default
Browse files Browse the repository at this point in the history
  • Loading branch information
limbo018 committed Dec 9, 2016
1 parent 5607e5d commit abeb086
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
9 changes: 8 additions & 1 deletion limbo/thirdparty/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit abeb086

Please sign in to comment.