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

【PIR Dist Op Reg No.13】 reg partial_send #60484

Merged
merged 7 commits into from
Feb 23, 2024

Conversation

Difers
Copy link
Contributor

@Difers Difers commented Dec 31, 2023

PR types

Others

PR changes

Others

Description

Copy link

paddle-bot bot commented Dec 31, 2023

你的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.

@paddle-bot paddle-bot bot added the contributor External developers label Dec 31, 2023
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jan 2, 2024
@kangguangli
Copy link
Contributor

该算子只在with_distribute开启的情况下编译,因此需要修改test/ir/pir/translator/CMakeLists.txt,在未开启with_distribute的时候,不启用单测。

@Difers Difers force-pushed the reg_pir_partial_send branch 4 times, most recently from 55d37d2 to b1ac26b Compare January 7, 2024 02:42
Comment on lines 8 to 9
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translate)
set(DISTRIBUTED_OP_TRANSLATION_TEST test_partial_send_translate)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translate)
set(DISTRIBUTED_OP_TRANSLATION_TEST test_partial_send_translate)
list(APPEND DISTRIBUTED_OP_TRANSLATION_TEST test_partial_send_translate)

应该这样改,之前的说法也有问题,删掉了

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translate)
set(DISTRIBUTED_OP_TRANSLATION_TEST test_partial_send_translate)
set(DISTRIBUTED_OP_TRANSLATION_TEST
test_c_reduce_min_translate
test_partial_send_translate)

另一种改法是这样的

Copy link
Contributor Author

Choose a reason for hiding this comment

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

收到

@@ -4,7 +4,8 @@ file(
"test_*.py")
string(REPLACE ".py" "" TEST_INTERP_CASES "${TEST_INTERP_CASES}")

set(DISTRIBUTED_OP_TRANSLATOR_TEST test_c_reduce_min_translator)
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translator
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
set(DISTRIBUTED_OP_TRANSLATION_TEST test_c_reduce_min_translator
set(DISTRIBUTED_OP_TRANSLATOR_TEST test_c_reduce_min_translator

这里写错了导致下面没生效

@kangguangli
Copy link
Contributor

@Difers 可以解决下冲突,应该可以合入了

@Difers
Copy link
Contributor Author

Difers commented Jan 17, 2024

@Difers 可以解决下冲突,应该可以合入了

好的

@xingmingyyj
Copy link
Contributor

麻烦修改一下PR描述,可以推进合入了

@@ -1565,6 +1565,16 @@
kernel:
func: onednn_to_paddle_layout

- op: partial_send
args: (Tensor x, int ring_id = 0, int peer = 0, bool use_calc_stream = false, int num = 1, int id = 0)
output: Tensor(out)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
output: Tensor(out)
output:

这个算子是没有输出的,其他地方也需要相应修改

Copy link

paddle-ci-bot bot commented Jan 25, 2024

Sorry to inform you that 6789505's CIs have passed for more than 7 days. To prevent PR conflicts, you need to re-run all CIs manually.

@luotao1
Copy link
Contributor

luotao1 commented Feb 19, 2024

@Difers 别忘了这个PR哈

@Difers
Copy link
Contributor Author

Difers commented Feb 23, 2024

@kangguangli 辛苦有时间再review下~

Copy link
Contributor

@zyfncg zyfncg left a comment

Choose a reason for hiding this comment

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

LGTM for op_compat.yaml

@kangguangli kangguangli merged commit e6510e8 into PaddlePaddle:develop Feb 23, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants