xgboost icon indicating copy to clipboard operation
xgboost copied to clipboard

Fail to build xgboost.federated plugin

Open yan-gao-GY opened this issue 2 years ago • 7 comments

Hi, I tried to install the plugin xgboost.federated following the instruction here (https://github.com/dmlc/xgboost/tree/master/plugin/federated), but I got an error as below:

CMake Error at CMakeLists.txt:12 (xgboost_target_properties): Unknown CMake command "xgboost_target_properties".

I have updated CMake, and installed gRPC. Then I ran these commands:

mkdir build 
cd build 
cmake .. -GNinja \ 
-DPLUGIN_FEDERATED=ON \ 
-DUSE_CUDA=ON\ 
-DUSE_NCCL=ON 
ninja 
cd ../python-package 
pip install -e . 

The error appeared when running cmake. Could you please indicate me how to fix this error? What's the correct way to install this plugin? Thanks a lot!

yan-gao-GY avatar Dec 06 '23 20:12 yan-gao-GY

which cmake version are you using?

trivialfis avatar Dec 06 '23 20:12 trivialfis

3.27.9

yan-gao-GY avatar Dec 06 '23 20:12 yan-gao-GY

I'm using the same version from conda forge, I can't reproduce it

trivialfis avatar Dec 06 '23 21:12 trivialfis

Oh I forgot to mention that I ran it on macbook with cmake .. -GNinja -DPLUGIN_FEDERATED=ON

yan-gao-GY avatar Dec 06 '23 21:12 yan-gao-GY

I don't think macos has CUDA support, or NCCL.

trivialfis avatar Dec 06 '23 21:12 trivialfis

I don't have a mac, have to wait for @hcho3 .

trivialfis avatar Dec 06 '23 21:12 trivialfis

Yes, I didn't pass the cuda and nccl arguments

yan-gao-GY avatar Dec 06 '23 21:12 yan-gao-GY

Closing as we haven't been able to reproduce. For reference, the missing command shared in the issue is defined here: https://github.com/dmlc/xgboost/blob/033a666900a2b58f72a3050e63b02f1681e4f609/cmake/Utils.cmake#L165 .

trivialfis avatar Aug 16 '24 18:08 trivialfis