Skip to content

Conversation

@houj04
Copy link
Contributor

@houj04 houj04 commented Jul 3, 2024

PR Category

Custom Device

PR Types

New features

Description

新增XPU下面的save算子的注册,并且新增saveload算子的单测。

@paddle-bot
Copy link

paddle-bot bot commented Jul 3, 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.

Copy link
Member

@tizhou86 tizhou86 left a comment

Choose a reason for hiding this comment

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

LGTM

@skywalker2012
Copy link
Contributor

请教下如何在不添加py单测文件的情况下,让save_load_op_test_xpu 在ctest命令下跑起来

@houj04
Copy link
Contributor Author

houj04 commented Jul 3, 2024

请教下如何在不添加py单测文件的情况下,让save_load_op_test_xpu 在ctest命令下跑起来

我新增的单测编译出来叫save_load_op_test_xpu,后缀特意叫做了_xpu,是因为流水线上跑单测的脚本是这个:paddle/scripts/paddle_build.sh

注意这个函数function parallel_test_base_xpu(),它里面获得单测列表的方法是

test_cases=$(ctest -N -V -LE "(RUN_TYPE=DIST_KUNLUN)" | grep "_xpu" )

所以后缀搞成_xpu这个样子就能跑了。

@skywalker2012
Copy link
Contributor

请教下如何在不添加py单测文件的情况下,让save_load_op_test_xpu 在ctest命令下跑起来

我新增的单测编译出来叫save_load_op_test_xpu,后缀特意叫做了_xpu,是因为流水线上跑单测的脚本是这个:paddle/scripts/paddle_build.sh

注意这个函数function parallel_test_base_xpu(),它里面获得单测列表的方法是

test_cases=$(ctest -N -V -LE "(RUN_TYPE=DIST_KUNLUN)" | grep "_xpu" )

所以后缀搞成_xpu这个样子就能跑了。

学习了,谢谢

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.

4 participants