-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add external openblas #1150
Add external openblas #1150
Conversation
@@ -15,7 +15,6 @@ | |||
INCLUDE(cblas) | |||
|
|||
IF(NOT ${CBLAS_FOUND}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
保留手动配置不同的CBLAS
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@backyes 内部有需求
CONFIGURE_COMMAND "" | ||
BUILD_COMMAND make CC=${CMAKE_C_COMPILER} FC=${CMAKE_Fortran_COMPILER} | ||
INSTALL_COMMAND make install PREFIX=<INSTALL_DIR> | ||
BUILD_COMMAND ${CMAKE_MAKE_PROGRAM} FC=${CMAKE_Fortran_COMPILER} CC=${CMAKE_C_COMPILER} HOSTCC=${CMAKE_C_COMPILER} NO_SHARED=1 libs netlib |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
编译时间太长,有make libs netlib就行了,去掉test部分
@@ -47,7 +47,7 @@ SET(EXTERNAL_PROJECT_LOG_ARGS | |||
LOG_DOWNLOAD 0 # Wrap download in script to log output | |||
LOG_UPDATE 1 # Wrap update in script to log output | |||
LOG_CONFIGURE 1 # Wrap configure in script to log output | |||
LOG_BUILD 1 # Wrap build in script to log output | |||
LOG_BUILD 0 # Wrap build in script to log output |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
开启external project 编译和安装信息输出到屏幕,有些依赖编译时间长,没有输出,会让人感觉卡住了。
@@ -31,6 +31,7 @@ IF(PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND) | |||
"please use pip to upgrade protobuf.") | |||
ENDIF(${PY_GOOGLE.PROTOBUF_VERSION} VERSION_LESS "3.0.0") | |||
ELSE(PYTHONLIBS_FOUND AND PYTHONINTERP_FOUND) | |||
MESSAGE(FATAL_ERROR "Please install python 2.7 before building PaddlePaddle.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
先就用系统python吧, python这块还不太稳定,并没有进行过详细测试。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Fix #1017