Skip to content

Commit 6ef60de

Browse files
author
yi.wu
committed
update
1 parent 7a7d27b commit 6ef60de

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.clang_format.hook

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
set -e
33

4-
readonly VERSION="3.8"
4+
readonly VERSION="7.0"
55

66
version=$(clang-format -version)
77

paddle/fluid/operators/detail/sendrecvop_utils.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void SerializeToByteBuffer(const std::string& name, framework::Variable* var,
162162
if (var->IsType<ncclUniqueId>()) {
163163
e.WriteVarlengthBeginning(VarMsg::kSerializedFieldNumber,
164164
NCCL_UNIQUE_ID_BYTES);
165-
ncclUniqueId& uid = var->Get<ncclUniqueId>();
165+
const ncclUniqueId& uid = var->Get<ncclUniqueId>();
166166
e.WriteRawBytes(std::string(uid.internal, NCCL_UNIQUE_ID_BYTES));
167167

168168
// for serialize NCCL_ID

paddle/fluid/operators/gen_nccl_id_op.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ limitations under the License. */
2323
#include "paddle/fluid/framework/threadpool.h"
2424
#include "paddle/fluid/operators/detail/grpc_client.h"
2525
#include "paddle/fluid/operators/detail/grpc_server.h"
26+
#include "paddle/fluid/platform/nccl_helper.h"
2627

2728
namespace paddle {
2829
namespace operators {

0 commit comments

Comments
 (0)