-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Update Dockerfile for develop branch #1169
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
Conversation
|
还差gfortran |
| sudo apt-get update | ||
| sudo apt-get install -y g++ make cmake build-essential python python-pip libpython-dev git | ||
| sudo pip install wheel numpy | ||
| sudo apt-get install -y g++ make cmake build-essential python python-pip python-numpy libpython-dev git |
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.
- 是否在源码编译文档中,去除对cmake用apt-get的方式进行安装,避免用户使用apt-get安装cmake后,在编译Paddle时仍然报错。
- 是否需要加入对cmake 3.0安装的文档。
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.
有道理
|
|
||
| - **Compiler**: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1) | ||
| - **CMake**: version >= 3.0 (at least CMake 3.4 on Mac OS X) | ||
| - **Compiler**: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1) and gfortran compiler |
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.
好奇,为什么需要gfortran呢?
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.
一般来说,原因貌似也应该记录一下?
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.
主要原因是因为Paddle依赖于代数库BLAS,如果自动编译类似Openblas一类的依赖,需要gfortran来编译Lapack, 由于历史原因,Lapack应该是fortran写的。
| - **Compiler**: GCC >= 4.8 or Clang >= 3.3 (AppleClang >= 5.1) and gfortran compiler | ||
| - **CMake**: CMake >= 3.0 (at least CMake 3.4 on Mac OS X) | ||
| - **BLAS**: MKL, OpenBlas or ATLAS | ||
| - **Python**: only support Python 2.7 |
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.
好奇:为什么只能是2.7呢?
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.
@reyoung 这个于洋回答一下啊,能不能做到兼容python 2.7 和python3.x
|
Docker with the latest source code works now |
Co-authored-by: isaacw <[email protected]>
No description provided.