Skip to content
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

Support native build on NVIDIA DRIVE PX2 (arm64 + GPU). #2303

Merged
merged 1 commit into from
May 31, 2017

Conversation

Xreki
Copy link
Contributor

@Xreki Xreki commented May 27, 2017

Support native build on NVIDIA DRIVE PX2 (arm64 + GPU).

The native build on NVIDIA DRIVE PX2 is very simple. You can login through ssh and use following command to build cpu-only version:

cmake -DCMAKE_INSTALL_PREFIX=$DEST_ROOT \
      -DCMAKE_BUILD_TYPE=Release \
      -DWITH_GPU=OFF \
      -DWITH_PYTHON=ON \
      -DWITH_SWIG_PY=ON \
      ..  

The gpu version cannot be built before #2299 merged. Command to build the gpu version is also listed as follows:

cmake -DCMAKE_INSTALL_PREFIX=$DEST_ROOT \
      -DCMAKE_BUILD_TYPE=Release \
      -DWITH_GPU=ON \
      -DCUDNN_ROOT=${CUDNN_ROOT} \
      -DWITH_PYTHON=ON \
      -DWITH_SWIG_PY=ON \
      ..  

On NVIDIA DRIVE PX2, cuda is installed in /usr/local/cuda-8.0, cudnn is installed in /usr.

You are free to set CMAKE_BUILD_TYPE to other values (Debug, Release, RelWithDebInfo, MinSizeRel), as you need.

@Xreki Xreki requested a review from hedaoyuan May 27, 2017 07:29
Copy link
Contributor

@hedaoyuan hedaoyuan left a comment

Choose a reason for hiding this comment

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

The native build on NVIDIA DRIVE PX2 is very simple.

最好也在文档里面一写一下。另外DCMAKE_BUILD_TYPE=Release这个用MinSizeRel好。

@Xreki
Copy link
Contributor Author

Xreki commented May 27, 2017

@hedaoyuan 直接登录到PX2上去编译很简单,感觉没啥特别的配置,编译工具链包括cuda、cudnn,都是使用cuda提供的tookit安装好了的。

另外DCMAKE_BUILD_TYPE=Release这个用MinSizeRel好。

在PX2这种平台上跑Paddle,包的大小应该不是主要的吧,MinSizeRel默认用的是-OsRelease默认用的-O3,这两个速度我倒是没比较过。

@hedaoyuan
Copy link
Contributor

最好还是有某个build文档中是体现了Paddle可以支持PX2编译的,另外,cmake那条命令也不一定所有人都知道怎么配参数。嵌入式环境中还是要考虑包的大小的。

@Xreki
Copy link
Contributor Author

Xreki commented May 27, 2017

最好还是有某个build文档中是体现了Paddle可以支持PX2编译的,另外,cmake那条命令也不一定所有人都知道怎么配参数。

@hedaoyuan 好,我看看是新写一个文档,还是基于原来的编译文档增加支持PX2编译的内容。

嵌入式环境中还是要考虑包的大小的。

这个选择还是留给用户自己吧。我之前写的Android和Raspberry Pi编译文档里cmake配置示例是没有设置CMAKE_BUILD_TYPE的,但是有提示用户可以配置Release或者MinSizeRel

@Xreki Xreki merged commit 5526ff8 into PaddlePaddle:develop May 31, 2017
@Xreki Xreki deleted the build_drive_px2 branch October 18, 2017 06:19
heavengate pushed a commit to heavengate/Paddle that referenced this pull request Aug 16, 2021
* add blazeface & update rcnn modelzoo

* remove condition num_priors
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.

2 participants