Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
fba98ec
[jvm-packages] Support spark connect
wbo4958 Mar 6, 2025
54c2269
[jvm-packages] ExtenralMemory: Overlap the caching time
wbo4958 May 19, 2025
e86acad
increase the timeout
wbo4958 May 23, 2025
8f59bc9
fix use_rmm
wbo4958 May 27, 2025
a16f92f
depends on 4.0.0
wbo4958 May 27, 2025
5c6574d
Log.
trivialfis May 27, 2025
4b65cdb
Merge remote-tracking branch 'wbo4958/benchmark-ext-mem-connect' into…
trivialfis May 27, 2025
7c02576
Fix parameter name.
trivialfis May 27, 2025
1bcc428
Use long.
trivialfis May 27, 2025
186646e
Fix.
trivialfis May 27, 2025
d37b071
add cache_host_ratio parameters
wbo4958 May 28, 2025
1ff00bb
python parameters
wbo4958 May 28, 2025
7fe09eb
Use 1.0 for now.
trivialfis May 29, 2025
dd907ff
fix cacheBatch ratio
wbo4958 May 29, 2025
6cf4423
Merge branch 'benchmark-ext-mem-connect' of github.com:wbo4958/xgboos…
wbo4958 May 29, 2025
d815132
fix cache Ratio
wbo4958 May 29, 2025
c061346
advise.
trivialfis May 29, 2025
080fc46
Merge remote-tracking branch 'wbo4958/benchmark-ext-mem-connect' into…
trivialfis May 29, 2025
d0fd637
cast.
trivialfis May 29, 2025
9ce1778
test nvml.
trivialfis May 30, 2025
fa6bccb
link.
trivialfis May 30, 2025
f0b1d0d
test uuid.
trivialfis May 30, 2025
15989c0
Fix
trivialfis May 30, 2025
6970394
init.
trivialfis May 30, 2025
2de7485
driver version.
trivialfis May 30, 2025
7f0518a
driver.
trivialfis May 30, 2025
d458786
remove.
trivialfis May 30, 2025
4d07cc2
macros.
trivialfis May 30, 2025
eb6b78c
Remove driver.
trivialfis May 30, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions cmake/Utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ function(xgboost_set_cuda_flags target)
# need to link with CCCL and CUDA runtime.
target_link_libraries(${target} PRIVATE CCCL::CCCL CUDA::cudart_static)
endif()
target_link_libraries(${target} PRIVATE CUDA::nvml)
target_compile_definitions(${target} PRIVATE -DXGBOOST_USE_CUDA=1)
target_include_directories(
${target} PRIVATE
Expand Down
25 changes: 18 additions & 7 deletions jvm-packages/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<groupId>ml.dmlc</groupId>
<artifactId>xgboost-jvm_2.12</artifactId>
<artifactId>xgboost-jvm_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>XGBoost JVM Package</name>
Expand Down Expand Up @@ -43,15 +43,15 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
<flink.version>1.20.0</flink.version>
<junit.version>4.13.2</junit.version>
<spark.version>3.5.3</spark.version>
<spark.version.gpu>3.5.1</spark.version.gpu>
<spark.version>4.0.0</spark.version>
<spark.version.gpu>4.0.0</spark.version.gpu>
<fasterxml.jackson.version>2.15.0</fasterxml.jackson.version>
<scala.version>2.12.18</scala.version>
<scala.binary.version>2.12</scala.binary.version>
<scala.version>2.13.11</scala.version>
<scala.binary.version>2.13</scala.binary.version>
<hadoop.version>3.4.1</hadoop.version>
<maven.wagon.http.retryHandler.count>5</maven.wagon.http.retryHandler.count>
<log.capi.invocation>OFF</log.capi.invocation>
Expand Down Expand Up @@ -89,6 +89,17 @@
<name>central maven</name>
<url>https://repo1.maven.org/maven2</url>
</repository>
<repository>
<id>apache-snapshots</id>
<url>https://repository.apache.org/content/repositories/snapshots/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
<releases>
<enabled>false</enabled>
</releases>
</repository>

</repositories>
<modules>
</modules>
Expand Down
8 changes: 4 additions & 4 deletions jvm-packages/xgboost4j-example/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost-jvm_2.12</artifactId>
<artifactId>xgboost-jvm_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<name>xgboost4j-example</name>
<artifactId>xgboost4j-example_2.12</artifactId>
<artifactId>xgboost4j-example_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
<packaging>jar</packaging>
<build>
Expand All @@ -26,7 +26,7 @@
<dependencies>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j-spark_2.12</artifactId>
<artifactId>xgboost4j-spark_2.13</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -37,7 +37,7 @@
</dependency>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j-flink_2.12</artifactId>
<artifactId>xgboost4j-flink_2.13</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
6 changes: 3 additions & 3 deletions jvm-packages/xgboost4j-flink/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost-jvm_2.12</artifactId>
<artifactId>xgboost-jvm_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>

<name>xgboost4j-flink</name>
<artifactId>xgboost4j-flink_2.12</artifactId>
<artifactId>xgboost4j-flink_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
<properties>
<flink-ml.version>2.2.0</flink-ml.version>
Expand All @@ -30,7 +30,7 @@
<dependencies>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j_2.12</artifactId>
<artifactId>xgboost4j_2.13</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
10 changes: 5 additions & 5 deletions jvm-packages/xgboost4j-spark-gpu/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost-jvm_2.12</artifactId>
<artifactId>xgboost-jvm_2.13</artifactId>
<version>3.1.0-SNAPSHOT</version>
</parent>
<name>xgboost4j-spark-gpu</name>
<artifactId>xgboost4j-spark-gpu_2.12</artifactId>
<artifactId>xgboost4j-spark-gpu_2.13</artifactId>
<description>JVM Package for XGBoost</description>
<url>https://github.com/dmlc/xgboost/tree/master/jvm-packages</url>
<licenses>
Expand Down Expand Up @@ -78,17 +78,17 @@
<dependencies>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j_2.12</artifactId>
<artifactId>xgboost4j_2.13</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j-spark_2.12</artifactId>
<artifactId>xgboost4j-spark_2.13</artifactId>
<version>${project.version}</version>
<exclusions>
<exclusion>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j_2.12</artifactId>
<artifactId>xgboost4j_2.13</artifactId>
</exclusion>
</exclusions>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ public ExtMemQuantileDMatrix(Iterator<ColumnBatch> iter,
DMatrix ref,
int nthread,
int maxQuantileBatches,
int minCachePageBytes) throws XGBoostError {
long minCachePageBytes,
float cacheHostRatio) throws XGBoostError {
long[] out = new long[1];
long[] refHandle = null;
if (ref != null) {
refHandle = new long[1];
refHandle[0] = ref.getHandle();
}
String conf = this.getConfig(missing, maxBin, nthread,
maxQuantileBatches, minCachePageBytes);
maxQuantileBatches, minCachePageBytes, cacheHostRatio);
XGBoostJNI.checkCall(XGBoostJNI.XGExtMemQuantileDMatrixCreateFromCallback(
iter, refHandle, conf, out));
handle = out[0];
Expand All @@ -50,7 +51,7 @@ public ExtMemQuantileDMatrix(
float missing,
int maxBin,
DMatrix ref) throws XGBoostError {
this(iter, missing, maxBin, ref, 0, -1, -1);
this(iter, missing, maxBin, ref, 0, -1, -1, -1.0f);
}

public ExtMemQuantileDMatrix(
Expand All @@ -61,19 +62,25 @@ public ExtMemQuantileDMatrix(
}

private String getConfig(float missing, int maxBin, int nthread,
int maxQuantileBatches, int minCachePageBytes) {
int maxQuantileBatches, long minCachePageBytes, float cacheHostRatio) {
Map<String, Object> conf = new java.util.HashMap<>();
conf.put("missing", missing);
conf.put("max_bin", maxBin);
conf.put("nthread", nthread);

if (maxQuantileBatches > 0) {
conf.put("max_quantile_batches", maxQuantileBatches);
conf.put("max_quantile_blocks", maxQuantileBatches);
}
System.err.println("minCachePageBytes");
System.err.println(minCachePageBytes);
if (minCachePageBytes > 0) {
conf.put("min_cache_page_bytes", minCachePageBytes);
}

if (cacheHostRatio > 0.0 && cacheHostRatio <= 1.0) {
conf.put("cache_host_ratio", cacheHostRatio);
}

conf.put("on_host", true);
conf.put("cache_prefix", ".");
ObjectMapper mapper = new ObjectMapper();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ class ExtMemQuantileDMatrix private[scala](
ref: Option[QuantileDMatrix],
nthread: Int,
maxQuantileBatches: Int,
minCachePageBytes: Int) {
minCachePageBytes: Long,
cacheHostRatio: Float) {
this(new jExtMemQuantileDMatrix(iter.asJava, missing, maxBin,
ref.map(_.jDMatrix).orNull,
nthread, maxQuantileBatches, minCachePageBytes))
nthread, maxQuantileBatches, minCachePageBytes, cacheHostRatio))
}

def this(iter: Iterator[ColumnBatch], missing: Float, maxBin: Int) {
Expand Down
Loading