Repository: incubator-singa Updated Branches: refs/heads/master a3446b5cd -> 8dac86cac
SINGA-292 Update CMakeLists.txt for compiling OpenBlas and Protobuf Update CMakeLists.txt to compile openblas using the 'optimized_for_deeplearning' branch and set the PROTOBUF_PROTOC_EXECUTABLE path to build/bin/proto (which resulted in error when compiling on mac osx) Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/45efd350 Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/45efd350 Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/45efd350 Branch: refs/heads/master Commit: 45efd3507e1cda75db9cacbe1bcd47a57ede9c68 Parents: a3446b5 Author: wangwei <[email protected]> Authored: Wed Jan 11 14:50:55 2017 +0800 Committer: wangwei <[email protected]> Committed: Wed Jan 11 14:50:55 2017 +0800 ---------------------------------------------------------------------- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/45efd350/CMakeLists.txt ---------------------------------------------------------------------- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0d763c5..f3f73b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,10 +127,14 @@ IF (USE_MODULES) "--prefix=${CMAKE_BINARY_DIR}/" "CXXFLAGS=-fPIC" INSTALL_COMMAND "make" "install" ) + SET(PROTOBUF_PROTOC_EXECUTABLE "${CMAKE_BINARY_DIR}/bin/protoc") + message(STATUS "${PROTOBUF_PROTOC_EXECUTABLE}") + ExternalProject_Add(openblas GIT_REPOSITORY "https://github.com/xianyi/OpenBLAS.git" #GIT_TAG "develop" - GIT_TAG "f3419e6" + #GIT_TAG "f3419e6" + GIT_TAG "optimized_for_deeplearning" SOURCE_DIR "openblas/" BUILD_IN_SOURCE 1 CONFIGURE_COMMAND ""
