Skip to content

Conversation

@gangliao
Copy link
Contributor

No description provided.

@gangliao
Copy link
Contributor Author

还差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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 是否在源码编译文档中,去除对cmake用apt-get的方式进行安装,避免用户使用apt-get安装cmake后,在编译Paddle时仍然报错。
  2. 是否需要加入对cmake 3.0安装的文档。

Copy link
Contributor Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好奇,为什么需要gfortran呢?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一般来说,原因貌似也应该记录一下?

Copy link
Contributor Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好奇:为什么只能是2.7呢?

Copy link
Contributor Author

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

@gangliao
Copy link
Contributor Author

Docker with the latest source code works now

@gangliao
Copy link
Contributor Author

#1154

lizexu123 pushed a commit to lizexu123/Paddle that referenced this pull request Feb 23, 2024
zhangyuqin1998 pushed a commit to zhangyuqin1998/Paddle that referenced this pull request Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants