Skip to content

Commit 2f8e5f3

Browse files
committed
Fix
1 parent e3a69dc commit 2f8e5f3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

paddle/phi/kernels/gpu/c_concat_kernel.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ void CConcatKernel(const Context& dev_ctx,
7171
common::errors::Unavailable(
7272
"NCCLCommContext is nullptr, collective op should "
7373
"has ring_id attr."));
74-
stream = comm_ctx->GetStream();
74+
stream = dev_ctx.stream();
7575
comm_ctx->AllGather(&temp_out, *x, stream);
7676

7777
std::vector<phi::DenseTensor> inputs;

paddle/phi/kernels/xpu/c_concat_kernel.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ void CConcatKernel(const Context& dev_ctx,
6969
common::errors::Unavailable(
7070
"BKCLCommContext is nullptr, collective op should "
7171
"has ring_id attr."));
72-
stream = comm_ctx->GetStream();
72+
stream = dev_ctx.stream();
7373
comm_ctx->AllGather(&temp_out, *x, stream);
7474

7575
std::vector<phi::DenseTensor> inputs;

0 commit comments

Comments
 (0)