Skip to content

Commit

Permalink
Merge pull request #167 from hcho3/xgb_210
Browse files Browse the repository at this point in the history
Upgrade to XGBoost 2.1.0
  • Loading branch information
jakirkham authored Jul 26, 2024
2 parents 8ff4972 + 0349fc6 commit be9dd6a
Show file tree
Hide file tree
Showing 22 changed files with 276 additions and 194 deletions.
3 changes: 0 additions & 3 deletions .azure-pipelines/azure-pipelines-win.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ pin_run_as_build:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
r_base:
- '4.3'
target_platform:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ pin_run_as_build:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
r_base:
- '4.3'
target_platform:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ pin_run_as_build:
min_pin: x.x
max_pin: x.x
python:
- 3.10.* *_cpython
- 3.11.* *_cpython
- 3.12.* *_cpython
- 3.8.* *_cpython
- 3.9.* *_cpython
r_base:
- '4.3'
target_platform:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ m2w64_c_compiler:
- m2w64-toolchain
m2w64_cxx_compiler:
- m2w64-toolchain
pin_run_as_build:
r-base:
min_pin: x.x
max_pin: x.x
r_base:
- '4.1'
target_platform:
- win-64
zip_keys:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ m2w64_c_compiler:
- m2w64-toolchain
m2w64_cxx_compiler:
- m2w64-toolchain
pin_run_as_build:
r-base:
min_pin: x.x
max_pin: x.x
r_base:
- '4.1'
target_platform:
- win-64
zip_keys:
Expand Down
29 changes: 0 additions & 29 deletions .ci_support/win_64_cuda_compilernvcccuda_compiler_version11.8.yaml

This file was deleted.

4 changes: 1 addition & 3 deletions .scripts/build_steps.sh

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions .scripts/run_win_build.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 0 additions & 7 deletions README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ os_version:
provider:
linux_aarch64: default
linux_ppc64le: default
test: native_and_emulated
test: native
25 changes: 0 additions & 25 deletions recipe/0002-Enable-latest-libcxx-on-MacOS.patch

This file was deleted.

55 changes: 0 additions & 55 deletions recipe/0004-Undo-dmlc-xgboost-9436.patch

This file was deleted.

14 changes: 8 additions & 6 deletions recipe/bld.bat
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
mkdir "%SRC_DIR%"\build
pushd "%SRC_DIR%"\build
@echo on

if NOT "%cuda_compiler_version%"=="None" (
mkdir %SRC_DIR%\build
pushd %SRC_DIR%\build

if not "%cuda_compiler_version%" == "None" (
set "CMAKE_ARGS=-DUSE_CUDA=ON %CMAKE_ARGS%"
)

cmake -G "Ninja" ^
%CMAKE_ARGS% ^
-DCMAKE_BUILD_TYPE:STRING="Release" ^
-DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^
-DCMAKE_INSTALL_PREFIX:PATH="%LIBRARY_PREFIX%" ^
-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON ^
-DR_LIB=OFF ^
-DR_LIB:BOOL=OFF ^
"%SRC_DIR%"
if errorlevel 1 exit 1

cmake --build . --target install --config Release
cmake --build . --target install --config Release -- -v
if errorlevel 1 exit 1

popd
2 changes: 0 additions & 2 deletions recipe/install-libxgboost.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ else
fi

mkdir -p ${LIBDIR} ${INCDIR}/xgboost ${BINDIR} || true
cp ${SRC_DIR}/xgboost${EXEEXT} ${BINDIR}/
cp ${SRC_DIR}/lib/${XGBOOSTDSO} ${SODIR}/
cp -Rf ${SRC_DIR}/include/xgboost ${INCDIR}/
cp -Rf ${SRC_DIR}/rabit/include/rabit ${INCDIR}/xgboost/
cp -f ${SRC_DIR}/src/c_api/*.h ${INCDIR}/xgboost/
2 changes: 1 addition & 1 deletion recipe/install-py-xgboost.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

pushd ${SRC_DIR}/python-package
${PYTHON} -m pip install . -vv --config-settings use_system_libxgboost=True
${PYTHON} -m pip install . -vv --config-settings use_system_libxgboost=True
popd
Loading

0 comments on commit be9dd6a

Please sign in to comment.