Skip to content

Commit bcb4472

Browse files
authored
Merge branch 'dmlc:release_2.1.0' into release_2.1.0
2 parents 2896011 + e36d361 commit bcb4472

File tree

74 files changed

+1661
-466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1661
-466
lines changed

.github/workflows/freebsd.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: FreeBSD
2+
3+
on: [push, pull_request]
4+
5+
permissions:
6+
contents: read # to fetch code (actions/checkout)
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
10+
cancel-in-progress: true
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
name: A job to run test in FreeBSD
16+
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
submodules: 'true'
20+
- name: Test in FreeBSD
21+
id: test
22+
uses: vmactions/freebsd-vm@v1
23+
with:
24+
usesh: true
25+
prepare: |
26+
pkg install -y cmake git ninja googletest
27+
28+
run: |
29+
mkdir build
30+
cd build
31+
cmake .. -GNinja -DGOOGLE_TEST=ON
32+
ninja -v
33+
./testxgboost

.github/workflows/i386.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
submodules: 'true'
2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@v3
26+
uses: docker/setup-buildx-action@v3.4.0
2727
with:
2828
driver-opts: network=host
2929
- name: Build and push container

CMakeLists.txt

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ if(PLUGIN_SYCL)
44
string(REPLACE " -isystem ${CONDA_PREFIX}/include" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
55
endif()
66

7-
project(xgboost LANGUAGES CXX C VERSION 2.1.0)
7+
project(xgboost LANGUAGES CXX C VERSION 2.1.1)
88
include(cmake/Utils.cmake)
99
list(APPEND CMAKE_MODULE_PATH "${xgboost_SOURCE_DIR}/cmake/modules")
1010

@@ -222,6 +222,24 @@ if(USE_CUDA)
222222
add_subdirectory(${PROJECT_SOURCE_DIR}/gputreeshap)
223223

224224
find_package(CUDAToolkit REQUIRED)
225+
find_package(CCCL CONFIG)
226+
if(NOT CCCL_FOUND)
227+
message(STATUS "Standalone CCCL not found. Attempting to use CCCL from CUDA Toolkit...")
228+
find_package(CCCL CONFIG
229+
HINTS ${CUDAToolkit_LIBRARY_DIR}/cmake)
230+
if(NOT CCCL_FOUND)
231+
message(STATUS "Could not locate CCCL from CUDA Toolkit. Using Thrust and CUB from CUDA Toolkit...")
232+
find_package(libcudacxx CONFIG REQUIRED
233+
HINTS ${CUDAToolkit_LIBRARY_DIR}/cmake)
234+
find_package(CUB CONFIG REQUIRED
235+
HINTS ${CUDAToolkit_LIBRARY_DIR}/cmake)
236+
find_package(Thrust CONFIG REQUIRED
237+
HINTS ${CUDAToolkit_LIBRARY_DIR}/cmake)
238+
thrust_create_target(Thrust HOST CPP DEVICE CUDA)
239+
add_library(CCCL::CCCL INTERFACE IMPORTED GLOBAL)
240+
target_link_libraries(CCCL::CCCL INTERFACE libcudacxx::libcudacxx CUB::CUB Thrust)
241+
endif()
242+
endif()
225243
endif()
226244

227245
if(FORCE_COLORED_OUTPUT AND (CMAKE_GENERATOR STREQUAL "Ninja") AND

R-package/DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Package: xgboost
22
Type: Package
33
Title: Extreme Gradient Boosting
4-
Version: 2.1.0.1
5-
Date: 2024-06-19
4+
Version: 2.1.1.1
5+
Date: 2024-07-30
66
Authors@R: c(
77
person("Tianqi", "Chen", role = c("aut"),
88
email = "[email protected]"),
@@ -66,6 +66,6 @@ Imports:
6666
data.table (>= 1.9.6),
6767
jsonlite (>= 1.0)
6868
Roxygen: list(markdown = TRUE)
69-
RoxygenNote: 7.3.1
69+
RoxygenNote: 7.3.2
7070
Encoding: UTF-8
7171
SystemRequirements: GNU make, C++17

R-package/config.h.in

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
/* config.h.in. Generated from configure.ac by autoheader. */
2+
3+
/* Define if building universal (internal helper macro) */
4+
#undef AC_APPLE_UNIVERSAL_BUILD
5+
6+
/* Define to 1 if you have the <inttypes.h> header file. */
7+
#undef HAVE_INTTYPES_H
8+
9+
/* Define to 1 if you have the <stdint.h> header file. */
10+
#undef HAVE_STDINT_H
11+
12+
/* Define to 1 if you have the <stdio.h> header file. */
13+
#undef HAVE_STDIO_H
14+
15+
/* Define to 1 if you have the <stdlib.h> header file. */
16+
#undef HAVE_STDLIB_H
17+
18+
/* Define to 1 if you have the <strings.h> header file. */
19+
#undef HAVE_STRINGS_H
20+
21+
/* Define to 1 if you have the <string.h> header file. */
22+
#undef HAVE_STRING_H
23+
24+
/* Define to 1 if you have the <sys/stat.h> header file. */
25+
#undef HAVE_SYS_STAT_H
26+
27+
/* Define to 1 if you have the <sys/types.h> header file. */
28+
#undef HAVE_SYS_TYPES_H
29+
30+
/* Define to 1 if you have the <unistd.h> header file. */
31+
#undef HAVE_UNISTD_H
32+
33+
/* Define to the address where bug reports for this package should be sent. */
34+
#undef PACKAGE_BUGREPORT
35+
36+
/* Define to the full name of this package. */
37+
#undef PACKAGE_NAME
38+
39+
/* Define to the full name and version of this package. */
40+
#undef PACKAGE_STRING
41+
42+
/* Define to the one symbol short name of this package. */
43+
#undef PACKAGE_TARNAME
44+
45+
/* Define to the home page for this package. */
46+
#undef PACKAGE_URL
47+
48+
/* Define to the version of this package. */
49+
#undef PACKAGE_VERSION
50+
51+
/* Define to 1 if all of the C90 standard headers exist (not just the ones
52+
required in a freestanding environment). This macro is provided for
53+
backward compatibility; new code need not use it. */
54+
#undef STDC_HEADERS
55+
56+
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
57+
significant byte first (like Motorola and SPARC, unlike Intel). */
58+
#if defined AC_APPLE_UNIVERSAL_BUILD
59+
# if defined __BIG_ENDIAN__
60+
# define WORDS_BIGENDIAN 1
61+
# endif
62+
#else
63+
# ifndef WORDS_BIGENDIAN
64+
# undef WORDS_BIGENDIAN
65+
# endif
66+
#endif

0 commit comments

Comments
 (0)