occlum/demos/xgboost
2023-03-29 09:31:20 +08:00
..
patch Update the xgboost to latest version 2020-10-18 09:59:06 +08:00
.gitignore Add XGBoost demo 2019-11-30 13:39:26 +00:00
download_and_build_xgboost.sh [demos] Improve steps of dependency preinstall 2023-03-29 09:31:20 +08:00
install_cmake.sh [demos] Improve steps of dependency preinstall 2023-03-29 09:31:20 +08:00
Makefile Update xgboost demo with bom file 2021-09-26 16:34:52 +08:00
preinstall_deps.sh [demos] Improve steps of dependency preinstall 2023-03-29 09:31:20 +08:00
README.md [demos] Improve steps of dependency preinstall 2023-03-29 09:31:20 +08:00
run_xgboost.sh Add XGBoost demo 2019-11-30 13:39:26 +00:00
xgboost.yaml Update xgboost demo with bom file 2021-09-26 16:34:52 +08:00

Use XGBoost in SGX with Occlum

Step 1: Preinstall dependencies

Related dependencies: python3-pip python3-setuptools kubernetes cmake

./preinstall_deps.sh

Step 2: Download and build XGBoost

./download_and_build_xgboost.sh

When completed, the resulting XGBoost can be found in xgboost_src directory.

Step 3: To train data with XGBoost in a single process, run

make test

Step 4: To train data with a two-node XGBoost cluster, run

make test-local-cluster

Step 5 (Optional): To train data with XGBoost in a single process in Linux, run

make test-native