forked from dmlc/xgboost
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all commands to separate script files
- Loading branch information
Showing
17 changed files
with
125 additions
and
198 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,3 @@ dependencies: | |
- cmake | ||
- ninja | ||
- python-build | ||
- c-compiler | ||
- cxx-compiler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
## Deploy JVM packages to S3 bucket | ||
|
||
set -euox pipefail | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/bash | ||
## Test C API demos | ||
|
||
set -euox pipefail | ||
|
||
# Build and install XGBoost static library (libxgboost.a) | ||
mkdir build | ||
pushd build | ||
cmake .. -DBUILD_STATIC_LIB=ON -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -GNinja | ||
ninja -v install | ||
popd | ||
|
||
# Build and run C API demo with static library | ||
pushd demo/c-api/ | ||
mkdir build-c-api-demo | ||
pushd build-c-api-demo | ||
cmake .. -GNinja -DCMAKE_PREFIX_PATH=$CONDA_PREFIX | ||
ninja -v | ||
ctest | ||
popd | ||
rm -rf ./build-c-api-demo | ||
popd | ||
|
||
# Build and install XGBoost shared library (libxgboost.so) | ||
pushd build | ||
cmake .. -DBUILD_STATIC_LIB=OFF -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -GNinja \ | ||
-DPLUGIN_FEDERATED=ON | ||
ninja -v install | ||
popd | ||
|
||
# Build and run C API demo with shared library | ||
mkdir demo/c-api/build-c-api-demo | ||
pushd demo/c-api/build-c-api-demo | ||
cmake .. -GNinja -DCMAKE_PREFIX_PATH=$CONDA_PREFIX | ||
ninja -v | ||
ctest | ||
popd | ||
./ops/script/verify_link.sh ./demo/c-api/build-c-api-demo/basic/api-demo | ||
./ops/script/verify_link.sh ./demo/c-api/build-c-api-demo/external-memory/external-memory-demo |
Oops, something went wrong.