diff --git a/cmake/external/xpu.cmake b/cmake/external/xpu.cmake index ffe840632b9b274555e7848030d582d3729795eb..5e9c939c4df5053ce7f268d01119acee7ba28022 100644 --- a/cmake/external/xpu.cmake +++ b/cmake/external/xpu.cmake @@ -9,7 +9,7 @@ set(XPU_RT_LIB_NAME "libxpurt.so") set(XPU_XFT_LIB_NAME "libxft.so") set(XPU_BASE_DATE "20230310") -set(XPU_XCCL_BASE_VERSION "1.0.12") +set(XPU_XCCL_BASE_VERSION "1.0.13") set(XPU_XFT_BASE_VERSION "latest") if(NOT DEFINED XPU_BASE_URL) diff --git a/paddle/fluid/distributed/collective/bkcl_tools.cc b/paddle/fluid/distributed/collective/bkcl_tools.cc index 13795ae67e5f33be5ccfcba6a1c6c5e071a5986d..ba5afbbf1feb5523db17cacc28fb4e8e745a9d12 100644 --- a/paddle/fluid/distributed/collective/bkcl_tools.cc +++ b/paddle/fluid/distributed/collective/bkcl_tools.cc @@ -21,13 +21,16 @@ namespace distributed { BKCLOp ToBKCLRedType(ReduceOp reduction) { static const std::map red_type = { + {ReduceOp::MIN, BKCL_MIN}, + {ReduceOp::MAX, BKCL_MAX}, {ReduceOp::SUM, BKCL_ADD}, }; auto it = red_type.find(reduction); PADDLE_ENFORCE_EQ(it != red_type.end(), true, platform::errors::InvalidArgument( - "Invalid bkcl reduction. Must be BKCL_ADD")); + "Invalid bkcl reduction. Must be BKCL_MIN | BKCL_MAX | " + "BKCL_ADD")); return it->second; }