Last active
July 24, 2022 11:01
-
-
Save thomasaarholt/40a08720566d59a1a58dfecafdecea06 to your computer and use it in GitHub Desktop.
Building XGBoost with GPU support from source on Red Hat with mload
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
# must not use gcc version > 10 | |
module load CUDA/11.0 CMake/3.21.1-GCCcore-11.2.0 | |
# Clone with recursive! Otherwise you get dmlc error later on! | |
git clone --recursive https://github.com/dmlc/xgboost | |
cd xgboost/python-package | |
# clean out any old build files that may break things if try to recompile | |
rm -rf build | |
# Build with CUDA support: | |
python setup.py install --use-cuda --use-nccl |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment