Skip to content

[Backend] Integrate Paddle to ml module#7028

Closed
SecretXV wants to merge 5 commits intoisl-org:mainfrom
SecretXV:release/open3d_for_paddle
Closed

[Backend] Integrate Paddle to ml module#7028
SecretXV wants to merge 5 commits intoisl-org:mainfrom
SecretXV:release/open3d_for_paddle

Conversation

@SecretXV
Copy link

@SecretXV SecretXV commented Oct 25, 2024

Type

  • Bug fix (non-breaking change which fixes an issue): Fixes #
  • New feature (non-breaking change which adds functionality). Resolves #
  • Breaking change (fix or feature that would cause existing functionality to not work as expected) Resolves #

Motivation and Context

Checklist:

  • I have run python util/check_style.py --apply to apply Open3D code style
    to my code.
  • This PR changes Open3D behavior or adds new functionality.
    • Both C++ (Doxygen) and Python (Sphinx / Google style) documentation is
      updated accordingly.
    • I have added or updated C++ and / or Python unit tests OR included test
      results
      (e.g. screenshots or numbers) here.
  • I will follow up and update the code if CI fails.
  • For fork PRs, I have selected Allow edits from maintainers.

Description

This PR is the part I of integration Paddle to ml module.

More details: #7027

We don't integrate Paddle unit test to workflow currently (this will be implement at part II). So we provide a method to build from source to reproduce our works.

Environment

image:registry.baidubce.com/paddlepaddle/paddle:3.0.0b1-gpu-cuda11.8-cudnn8.6-trt8.5

NOTE: we not verify other environment currently.

How to build

  1. update cmake
wget -nc https://paddle-org.bj.bcebos.com/paddlescience/cmake-3.23.0-linux-x86_64.tar.gz
tar -zxvf cmake-3.23.0-linux-x86_64.tar.gz
rm -f cmake-3.23.0-linux-x86_64.tar.gz
PATH=$PWD/cmake-3.23.0-linux-x86_64/bin:$PATH
  1. Install dependencies
util/install_deps_ubuntu.sh
pip install yapf==0.30.0
  1. Install nightly-build paddlepaddle-gpu
pip uninstall paddlepaddle-gpu
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/
  1. Config
mkdir build
cd build
cmake  -DBUILD_CUDA_MODULE=ON \
             -DBUILD_PADDLE_OPS=ON  \
             -DGLIBCXX_USE_CXX11_ABI=ON \
             -DBUNDLE_OPEN3D_ML=OFF \
             ..
  1. Build
make -j8
  1. Install
make install-pip-package
  1. Verify
python -c "import open3d.ml.paddle"

The result should be showed as below.
image

@update-docs
Copy link

update-docs bot commented Oct 25, 2024

Thanks for submitting this pull request! The maintainers of this repository would appreciate if you could update the CHANGELOG.md based on your changes.

@SecretXV SecretXV mentioned this pull request Oct 25, 2024
3 tasks
@SecretXV
Copy link
Author

Hey @ssheorey @benjaminum . Can you help me review this PR ?

@wangguan1995
Copy link

wangguan1995 commented Nov 7, 2024

Environment
cmake > 3.20

docker pull registry.baidubce.com/paddlepaddle/paddle:3.0.0b1-gpu-cuda12.3-cudnn9.0-trt8.6
docker run --gpus all --name paddle -it -v $PWD:/paddle registry.baidubce.com/paddlepaddle/paddle:3.0.0b1-gpu-cuda12.3-cudnn9.0-trt8.6 /bin/bash
  1. Install dependencies
uninstall paddlepaddle-gpu
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu123/

need remove "sudo" in bash script for docker user

  1. Config
mkdir build
cd build
wget https://github.com/Kitware/CMake/releases/download/v3.31.0-rc3/cmake-3.31.0-rc3-linux-x86_64.tar.gz
tar -xvf cmake-3.31.0-rc3-linux-x86_64.tar.gz


cmake-3.31.0-rc3-linux-x86_64/bin/cmake  -DBUILD_CUDA_MODULE=ON \
             -DBUILD_PADDLE_OPS=ON  \
             -DGLIBCXX_USE_CXX11_ABI=ON \
             -DBUNDLE_OPEN3D_ML=OFF \
             ..

make wheel

make pip-package

@SecretXV SecretXV closed this by deleting the head repository Dec 25, 2024
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