[jvm-packages] remove code link and make xgboost4j-spark-gpu depend on xgboost4j-spark (#10635)

This commit is contained in:
Bobby Wang 2024-07-25 23:27:51 +08:00 committed by GitHub
parent ec82c75ee7
commit 384983ed27
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 7 additions and 10 deletions

View File

@ -175,6 +175,7 @@ def native_build(args):
maybe_makedirs("xgboost4j-spark-gpu/src/test/resources")
for file in glob.glob("../demo/data/veterans_lung_cancer.csv"):
cp(file, "xgboost4j-spark-gpu/src/test/resources")
cp("xgboost4j-spark/src/test/resources/rank.train.csv", "xgboost4j-spark-gpu/src/test/resources")
if __name__ == "__main__":

View File

@ -92,20 +92,14 @@
</modules>
</profile>
<!-- gpu profile with both cpu and gpu test suites -->
<profile>
<id>gpu</id>
<activation>
<property>
<name>use.cuda</name>
<value>ON</value>
</property>
</activation>
<properties>
<use.cuda>ON</use.cuda>
</properties>
<modules>
<module>xgboost4j</module>
<module>xgboost4j-spark</module>
<module>xgboost4j-spark-gpu</module>
</modules>
</profile>

View File

@ -27,6 +27,11 @@
<artifactId>xgboost4j_2.12</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>ml.dmlc</groupId>
<artifactId>xgboost4j-spark_2.12</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.spark</groupId>
<artifactId>spark-core_${scala.binary.version}</artifactId>

View File

@ -1 +0,0 @@
../../../../../../../../xgboost4j-spark/src/main/scala/ml/dmlc/xgboost4j/scala/spark

View File

@ -1 +0,0 @@
../../../../xgboost4j-spark/src/main/scala/org

View File

@ -1 +0,0 @@
../../../xgboost4j-spark/src/test/resources