|
|
|
@ -162,7 +162,7 @@ void SerializeToByteBuffer(const std::string& name, framework::Variable* var,
|
|
|
|
|
if (var->IsType<ncclUniqueId>()) {
|
|
|
|
|
e.WriteVarlengthBeginning(VarMsg::kSerializedFieldNumber,
|
|
|
|
|
NCCL_UNIQUE_ID_BYTES);
|
|
|
|
|
ncclUniqueId& uid = var->Get<ncclUniqueId>();
|
|
|
|
|
const ncclUniqueId& uid = var->Get<ncclUniqueId>();
|
|
|
|
|
e.WriteRawBytes(std::string(uid.internal, NCCL_UNIQUE_ID_BYTES));
|
|
|
|
|
|
|
|
|
|
// for serialize NCCL_ID
|
|
|
|
|