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

[XPU] Update cmake options for xpu. (#33450) #33581

Merged
merged 6 commits into from
Jun 18, 2021

Conversation

jiweibo
Copy link
Contributor

@jiweibo jiweibo commented Jun 15, 2021

PR types

Others

PR changes

Others

Describe

cherry-pick #33450 #33328

更新了xpu的编译选项,并将xpu的so打入到预测库third_party中

x86 + Paddle XPU

cmake .. -DWITH_PYTHON=ON \
         -DPYTHON_EXECUTABLE=`which python` \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=ON \
         -DWITH_XPU=ON \
         -DWITH_XPU_BKCL=OFF \
         -DWITH_BDCENTOS=ON \
         -DWITH_GPU=OFF 

arm + Paddle xpu

cmake .. -DWITH_PYTHON=ON \
         -DPYTHON_EXECUTABLE=`which python` \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=OFF \
         -DWITH_XPU=ON \
         -DWITH_XPU_BKCL=OFF \
         -DWITH_GPU=OFF \
         -DWITH_ARM=ON \
         -DWITH_AARCH64=ON

x86 + Paddle XPU + lite XPU

cmake .. -DWITH_PYTHON=ON \
         -DPYTHON_EXECUTABLE=`which python` \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=ON \
         -DWITH_XPU=ON \
         -DWITH_XPU_BKCL=OFF \
         -DWITH_UBUNTU=ON \
         -DWITH_GPU=OFF \
         -DWITH_LITE=ON \
         -DLITE_WITH_XPU=ON \
         -DLITE_GIT_TAG=release/v2.9 \
         -DCMAKE_CXX_FLAGS="-Wno-error -w"

arm + Paddle XPU + lite XPU

cmake .. -DWITH_PYTHON=ON \
         -DPYTHON_EXECUTABLE=`which python` \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=OFF \
         -DWITH_XPU=ON \
         -DWITH_GPU=OFF \
         -DWITH_LITE=ON \
         -DWITH_ARM=ON \
         -DWITH_AARCH64=ON \
         -DLITE_WITH_XPU=ON \
         -DLITE_GIT_TAG=release/v2.9 \
         -DCMAKE_CXX_FLAGS="-Wno-error -w"

x86 + Paddle GPU + lite (XPU+GPU) (业务发包,不开启Python)

cmake .. -DWITH_PYTHON=OFF \
         -DCMAKE_BUILD_TYPE=Release \
         -DON_INFER=ON \
         -DWITH_MKL=ON \
         -DWITH_XPU=OFF \
         -DWITH_GPU=ON \
         -DCUDNN_ROOT=${CUDNN_ROOT} \
         -DWITH_TENSORRT=ON \
         -DWITH_LITE=ON \
         -DLITE_WITH_XPU=ON \
         -DLITE_GIT_TAG=develop #release/v2.9 \
         -DCMAKE_CXX_FLAGS="-Wno-error -w"

@paddle-bot-old
Copy link

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@Superjomn Superjomn left a comment

Choose a reason for hiding this comment

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

LGTM

@Superjomn Superjomn merged commit bd3aa03 into PaddlePaddle:release/2.1 Jun 18, 2021
@jiweibo jiweibo deleted the release/2.1 branch June 18, 2021 07:26
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