From 5218b7af6b0354244da5556c8755dd1c95357db6 Mon Sep 17 00:00:00 2001 From: lilong12 Date: Mon, 28 Sep 2020 11:24:45 +0800 Subject: [PATCH] add ncclSend and ncclRecv (#27621) * include ncclRecv and ncclSend, test=develop --- paddle/fluid/platform/dynload/nccl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/paddle/fluid/platform/dynload/nccl.h b/paddle/fluid/platform/dynload/nccl.h index 407f34f0ac..057636cfef 100644 --- a/paddle/fluid/platform/dynload/nccl.h +++ b/paddle/fluid/platform/dynload/nccl.h @@ -64,6 +64,13 @@ NCCL_RAND_ROUTINE_EACH(DECLARE_DYNAMIC_LOAD_NCCL_WRAP) NCCL_RAND_ROUTINE_EACH_AFTER_2212(DECLARE_DYNAMIC_LOAD_NCCL_WRAP) #endif +#if NCCL_VERSION_CODE >= 2703 +#define NCCL_RAND_ROUTINE_EACH_AFTER_2703(__macro) \ + __macro(ncclSend); \ + __macro(ncclRecv); +NCCL_RAND_ROUTINE_EACH_AFTER_2703(DECLARE_DYNAMIC_LOAD_NCCL_WRAP) +#endif + } // namespace dynload } // namespace platform } // namespace paddle -- GitLab