Skip to content

Commit

Permalink
fix multinode test auc in xpu
Browse files Browse the repository at this point in the history
  • Loading branch information
jack603047588 committed Mar 12, 2024
1 parent 8ed91f0 commit 2e9a451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion paddle/fluid/framework/fleet/box_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ void BoxWrapper::InitializeGPUAndLoadModel(
}
#if defined(PADDLE_WITH_XPU_KP)
std::vector<void*> bkcl_ctx_vec(gpu_num_, nullptr);
if (gpu_num_ > 1) {
if (boxps::MPICluster::Ins().size() == 1 && gpu_num_ > 1) {
for (int i = 0; i < gpu_num_; ++i) {
auto place = platform::XPUPlace(i);
auto comm = platform::BKCLCommContext::Instance().Get(0, place);
Expand Down

0 comments on commit 2e9a451

Please sign in to comment.