From 80d2024644da4a02387c6542e508b8369d7e2efc Mon Sep 17 00:00:00 2001 From: lilong12 Date: Tue, 17 Nov 2020 16:30:26 +0800 Subject: [PATCH] bug fix, test=develop (#28674) --- paddle/fluid/platform/dynload/nccl.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/paddle/fluid/platform/dynload/nccl.cc b/paddle/fluid/platform/dynload/nccl.cc index 2c40c48ee08..cfc98561e87 100644 --- a/paddle/fluid/platform/dynload/nccl.cc +++ b/paddle/fluid/platform/dynload/nccl.cc @@ -25,6 +25,14 @@ void *nccl_dso_handle; NCCL_RAND_ROUTINE_EACH(DEFINE_WRAP); +#if NCCL_VERSION_CODE >= 2212 +NCCL_RAND_ROUTINE_EACH_AFTER_2212(DEFINE_WRAP) +#endif + +#if NCCL_VERSION_CODE >= 2703 +NCCL_RAND_ROUTINE_EACH_AFTER_2703(DEFINE_WRAP) +#endif + } // namespace dynload } // namespace platform } // namespace paddle -- GitLab