Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Enable federated learning #159

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cuda:11.8
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
python:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -26,8 +28,16 @@ cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cuda:11.8
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -26,8 +28,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
BUILD:
- aarch64-conda_cos7-linux-gnu
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -26,8 +28,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '11'
docker_image:
- quay.io/condaforge/linux-anvil-cuda:11.8
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- gcc
c_compiler_version:
Expand All @@ -22,8 +24,16 @@ cxx_compiler_version:
- '12'
docker_image:
- quay.io/condaforge/linux-anvil-cos7-x86_64
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
nccl:
- '2'
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
16 changes: 14 additions & 2 deletions .ci_support/osx_64_.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
MACOSX_DEPLOYMENT_TARGET:
- '10.9'
- '10.13'
MACOSX_SDK_VERSION:
- '10.13'
c_ares:
- '1'
c_compiler:
- clang
c_compiler_version:
- '16'
c_stdlib:
- macosx_deployment_target
c_stdlib_version:
- '10.9'
- '10.13'
channel_sources:
- conda-forge
channel_targets:
Expand All @@ -20,10 +24,18 @@ cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
llvm_openmp:
- '16'
macos_machine:
- x86_64-apple-darwin13.4.0
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
10 changes: 10 additions & 0 deletions .ci_support/osx_arm64_.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
MACOSX_DEPLOYMENT_TARGET:
- '11.0'
c_ares:
- '1'
c_compiler:
- clang
c_compiler_version:
Expand All @@ -20,10 +22,18 @@ cxx_compiler:
- clangxx
cxx_compiler_version:
- '16'
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
llvm_openmp:
- '16'
macos_machine:
- arm64-apple-darwin20.0.0
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- vs2019
c_stdlib:
Expand All @@ -12,10 +14,18 @@ cuda_compiler_version:
- None
cxx_compiler:
- vs2019
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
m2w64_c_compiler:
- m2w64-toolchain
m2w64_cxx_compiler:
- m2w64-toolchain
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- vs2019
c_stdlib:
Expand All @@ -12,10 +14,18 @@ cuda_compiler_version:
- '12.0'
cxx_compiler:
- vs2019
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
m2w64_c_compiler:
- m2w64-toolchain
m2w64_cxx_compiler:
- m2w64-toolchain
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
c_ares:
- '1'
c_compiler:
- vs2019
c_stdlib:
Expand All @@ -12,10 +14,18 @@ cuda_compiler_version:
- '11.8'
cxx_compiler:
- vs2019
libabseil:
- '20230802'
libgrpc:
- '1.60'
libprotobuf:
- 4.25.1
m2w64_c_compiler:
- m2w64-toolchain
m2w64_cxx_compiler:
- m2w64-toolchain
openssl:
- '3'
pin_run_as_build:
r-base:
min_pin: x.x
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From 9e8e342c55c6d1e1ee924b1ccd4460e604f9736f Mon Sep 17 00:00:00 2001
From: Hyunsu Cho <chohyu01@cs.washington.edu>
Date: Tue, 2 Apr 2024 16:17:49 -0700
Subject: [PATCH] Enable federated learning build for Win32 and ARM

---
CMakeLists.txt | 6 ------
1 file changed, 6 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index c838ff9ef..f65b25087 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -133,18 +133,12 @@ if (BUILD_STATIC_LIB AND (R_LIB OR JVM_BINDINGS))
message(SEND_ERROR "Cannot build a static library libxgboost.a when R or JVM packages are enabled.")
endif (BUILD_STATIC_LIB AND (R_LIB OR JVM_BINDINGS))
if (PLUGIN_FEDERATED)
- if (CMAKE_CROSSCOMPILING)
- message(SEND_ERROR "Cannot cross compile with federated learning support")
- endif ()
if (BUILD_STATIC_LIB)
message(SEND_ERROR "Cannot build static lib with federated learning support")
endif ()
if (R_LIB OR JVM_BINDINGS)
message(SEND_ERROR "Cannot enable federated learning support when R or JVM packages are enabled.")
endif ()
- if (WIN32)
- message(SEND_ERROR "Federated learning not supported for Windows platform")
- endif ()
endif ()

#-- Sanitizer
--
2.34.1

Loading
Loading