From 0567781804835742766962cee72b6fc44f788825 Mon Sep 17 00:00:00 2001 From: lilong12 Date: Wed, 14 Oct 2020 10:29:24 +0800 Subject: [PATCH] Enable GLOO when compiled with WITH_DISTRIBUTE=ON (#27840) * update, test=develop --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index fa87cc14f26..06d687fc9c4 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -240,6 +240,12 @@ if(WITH_AMD_GPU) include(hip) endif(WITH_AMD_GPU) +if(WITH_DISTRIBUTE) + if(LINUX) + set(WITH_GLOO ON CACHE STRING "Enable GLOO when compiling WITH_DISTRIBUTE=ON." FORCE) + endif() +endif() + if(WITH_ARM) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC") -- GitLab