From acfd7129829201cf2456c4526533fa6390a0e5ab Mon Sep 17 00:00:00 2001 From: sneaxiy <32832641+sneaxiy@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:23:45 +0800 Subject: [PATCH] fix nullptr (#43370) --- paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu b/paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu index 91c583fff85..09233ab9957 100644 --- a/paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu +++ b/paddle/fluid/operators/optimizers/distributed_fused_lamb_op.cu @@ -1403,7 +1403,7 @@ class DistributedFusedLambOpKernel // Step 6: allreduce + global norm gradient clip int64_t global_rank = 0, local_rank = 0; - ncclComm_t global_comm = nullptr, local_comm = 0; + ncclComm_t global_comm = nullptr, local_comm = nullptr; if (nranks > 1) { auto *nccl_comm_handle = platform::NCCLCommContext::Instance().Get(ring_ids[0], place); -- GitLab