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

update xpu cmake for kunlun #33328

Merged
merged 8 commits into from
Jun 8, 2021
Merged

Conversation

tangzhiyi11
Copy link
Contributor

PR types

Others

PR changes

Others

Describe

update xpu cmake for kunlun
*test=kunlun

@paddle-bot-old
Copy link

paddle-bot-old bot commented Jun 3, 2021

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

IF (HOST_SYSTEM MATCHES "ubuntu")
SET(XPU_XRE_DIR_NAME "xre-ubuntu_x86_64")
SET(XPU_XDNN_DIR_NAME "xdnn-ubuntu_x86_64")
SET(XPU_XCCL_DIR_NAME "xccl-ubuntu_x86_64")
Copy link
Contributor

Choose a reason for hiding this comment

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

现在通讯库依赖厂内的brpc、protbuf等so,这些都是centos6u3编译的,所以这边只支持xccl-bdcentos_x86_64

Copy link
Contributor Author

Choose a reason for hiding this comment

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

已更新

SET(XPU_RT_LIB "${XPU_SDK_ROOT}/XTDK/runtime/shlib/libxpurt.so")
SET(XPU_LIB_DIR "${XPU_SDK_ROOT}/XTDK/shlib/")
endif()
ELSE()
Copy link
Contributor

Choose a reason for hiding this comment

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

这边需要和萌萌和Lite的同学再对下,是否需要支持手动指定XPU_SDK_ROOT的方式,如果要支持这种方式,目录结构应该与自动下载是一样的。

SET(XPU_XRE_DIR_NAME "xre-deepin_sw6_64")
SET(XPU_XDNN_DIR_NAME "xdnn-deepin_sw6_64")
SET(XPU_XCCL_DIR_NAME "xccl-deepin_sw6_64")
ENDIF()
Copy link
Contributor

Choose a reason for hiding this comment

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

如果是bdcentos, cmake要怎么设置呢

Copy link
Contributor Author

Choose a reason for hiding this comment

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

额 倒是没考虑到bdcentos,bdcentos应该不好区分吧,或者不同的系统版本在编译的时候指定,比如 WITH_BDCENTOS / WITH_UBUNTU

SET(XPU_XCCL_DIR_NAME "xccl-deepin_sw6_64")
ENDIF()

SET(XPU_XRE_URL "https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev/20210527/${XPU_XRE_DIR_NAME}.tar.gz" CACHE STRING "" FORCE)
Copy link
Contributor

Choose a reason for hiding this comment

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

这个base_url能独立出来吗,cmake的时候可以设定是不是会比较方便些

https://baidu-kunlun-product.cdn.bcebos.com/KL-SDK/klsdk-dev/20210527

Copy link
Contributor

@jiweibo jiweibo 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

@QingshuChen QingshuChen left a comment

Choose a reason for hiding this comment

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

LGTM

@jiweibo jiweibo merged commit 64914ea into PaddlePaddle:develop Jun 8, 2021
taixiurong pushed a commit to taixiurong/Paddle that referenced this pull request Jul 7, 2021
fuyinno4 pushed a commit that referenced this pull request Jul 12, 2021
* update xpu cmake for kunlun (#33328)

* xpu support amp (#33809)

* fix bug DLTP-31078 (#33877)

* update xpu cmake (#33906)

* [xpu] add dropout & amp ops in xpu place (#33891)

Co-authored-by: TTerror <tangzhiyi11@users.noreply.github.com>
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.

3 participants