Skip to content

Commit

Permalink
fix test_process_mesh_v2 ci fail!
Browse files Browse the repository at this point in the history
  • Loading branch information
winter-wang committed Feb 29, 2024
1 parent aa33c8a commit 82fd7ae
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion paddle/fluid/pir/dialect/distributed/ir/attribute_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ struct ProcessMeshAttrStorage : public pir::AttributeStorage {
///
/// \brief Each derived TypeStorage needs to overload operator==.
///
bool operator==(const ParamKey& key) const { return process_mesh == key; }
bool operator==(const ParamKey& key) const {
return process_mesh == key && process_mesh.dim_names() == key.dim_names();
}

ParamKey process_mesh;
};
Expand Down
3 changes: 0 additions & 3 deletions paddle/phi/core/distributed/auto_parallel/process_mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,6 @@ bool operator==(const ProcessMesh &lhs, const ProcessMesh &rhs) {
if (lhs.process_ids() != rhs.process_ids()) {
return false;
}
if (lhs.dim_names() != rhs.dim_names()) {
return false;
}
return true;
}

Expand Down

0 comments on commit 82fd7ae

Please sign in to comment.