Skip to content

Conversation

@skywalker2012
Copy link
Contributor

@skywalker2012 skywalker2012 commented Feb 22, 2024

PR types

Others

PR changes

Others

Description

This PR add support for XPU+Paddle local path compilation, can be used as a more flexible way under some situations.
For better experience, please see below example of usage:

cmake .. -DPY_VERSION=3.9 \
    -DCMAKE_BUILD_TYPE=Release \
    -DWITH_GPU=OFF \
    -DWITH_XPU=ON \
    -DON_INFER=ON \
    -DWITH_PYTHON=ON \
    -DWITH_MKL=ON \
    -DWITH_XPU_BKCL=ON \
    -DWITH_TESTING=ON \
    -DWITH_DISTRIBUTE=ON \
    -DWITH_XPU_XHPC=ON \
    -DXPU_BASE_URL=/workspace/paddle_develop/Paddle/output/xpu_portfolio_ubuntu/toolkit/modules

XPU_BASE_URL is treated as a local absolute path in this way, which should contain necessary modules folder like below:

  • xre-ubuntu_x86_64/
  • xhpc-ubuntu_x86_64/
  • xccl_socket-ubuntu_x86_64/

@paddle-bot
Copy link

paddle-bot bot commented Feb 22, 2024

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@CLAassistant
Copy link

CLAassistant commented Feb 22, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


skywalker2012 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

1 similar comment
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


skywalker2012 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

@paddle-bot
Copy link

paddle-bot bot commented Feb 22, 2024

❌ The PR is not created using PR's template. You can refer to this Demo.
Please use PR's template, it helps save our maintainers' time so that more developers get helped.

Copy link
Contributor

@runzhech runzhech left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@lj970926 lj970926 left a comment

Choose a reason for hiding this comment

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

LGTM

@QingshuChen QingshuChen merged commit bd3639b into PaddlePaddle:develop Feb 23, 2024
@skywalker2012 skywalker2012 deleted the local_compilation branch February 23, 2024 10:18
@houj04 houj04 added the XPU label Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants