Skip to content

Commit

Permalink
Add arm64 profile to build arm artifacts (#9273)
Browse files Browse the repository at this point in the history
Signed-off-by: Peixin Li <pxli@nyu.edu>
  • Loading branch information
pxLi authored Sep 21, 2023
1 parent a90242e commit 01fce6c
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 15 deletions.
4 changes: 2 additions & 2 deletions api_validation/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<scope>provided</scope>
</dependency>
<!-- use aggregator jar because accessing internal classes -->
Expand All @@ -115,7 +115,7 @@
<groupId>com.nvidia</groupId>
<artifactId>rapids-4-spark_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
12 changes: 6 additions & 6 deletions dist/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@

<properties>
<target.classifier/>
<dist.jar.name>${project.build.directory}/${project.build.finalName}-${cuda.version}.jar</dist.jar.name>
<dist.jar.name>${project.build.directory}/${project.build.finalName}-${jni.classifier}.jar</dist.jar.name>
<dist.jar.pom.url>jar:file:${dist.jar.name}!/META-INF/maven/${project.groupId}/${project.artifactId}/pom.xml</dist.jar.pom.url>
<rapids.default.jar.phase>none</rapids.default.jar.phase>
</properties>
Expand Down Expand Up @@ -223,7 +223,7 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</configuration>
<executions>
<execution>
Expand All @@ -235,7 +235,7 @@
<configuration>
<archive><compress>${dist.jar.compress}</compress></archive>
<classesDirectory>${project.build.directory}/parallel-world</classesDirectory>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -412,7 +412,7 @@ self.log("... OK")
<artifactItem>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<excludes>META-INF/**</excludes>
<outputDirectory>${project.build.directory}/parallel-world</outputDirectory>
<overWrite>true</overWrite>
Expand Down Expand Up @@ -447,7 +447,7 @@ self.log("... OK")
<configuration>
<file>${dist.jar.name}</file>
<artifactId>${project.artifactId}</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<groupId>${project.groupId}</groupId>
<version>${project.version}</version>
<packaging>jar</packaging>
Expand Down Expand Up @@ -477,7 +477,7 @@ self.log("... OK")
<file>${dist.jar.name}</file>
<url>file://${java.io.tmpdir}/m2-repo</url>
<artifactId>${project.artifactId}</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<groupId>${project.groupId}</groupId>
<packaging>jar</packaging>
<!-- pomFile will be taken from META-INF in jar
Expand Down
2 changes: 1 addition & 1 deletion integration_tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
<groupId>com.nvidia</groupId>
<artifactId>rapids-4-spark_${scala.binary.version}</artifactId>
<version>${project.version}</version>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
<scope>provided</scope>
</dependency>
<dependency>
Expand Down
9 changes: 8 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,12 @@
<maven.compiler.target>17</maven.compiler.target>
</properties>
</profile>
<profile>
<id>arm64</id>
<properties>
<jni.classifier>${cuda.version}-arm64</jni.classifier>
</properties>
</profile>
</profiles>

<properties>
Expand All @@ -594,6 +600,7 @@
<parquet.hadoop.version>1.10.1</parquet.hadoop.version>
<spark.version.classifier>spark${buildver}</spark.version.classifier>
<cuda.version>cuda11</cuda.version>
<jni.classifier>${cuda.version}</jni.classifier>
<spark-rapids-jni.version>23.10.0-SNAPSHOT</spark-rapids-jni.version>
<spark-rapids-private.version>23.10.0-SNAPSHOT</spark-rapids-private.version>
<scala.binary.version>2.12</scala.binary.version>
Expand Down Expand Up @@ -761,7 +768,7 @@
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<version>${spark-rapids-jni.version}</version>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
<dependency>
<groupId>org.openucx</groupId>
Expand Down
2 changes: 1 addition & 1 deletion shuffle-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
Expand Down
2 changes: 1 addition & 1 deletion sql-plugin-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
</dependencies>
<profiles>
Expand Down
2 changes: 1 addition & 1 deletion sql-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
<dependency>
<groupId>com.nvidia</groupId>
Expand Down
2 changes: 1 addition & 1 deletion tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
<!-- use aggregator jar because accessing internal classes -->
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion udf-compiler/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<dependency>
<groupId>com.nvidia</groupId>
<artifactId>spark-rapids-jni</artifactId>
<classifier>${cuda.version}</classifier>
<classifier>${jni.classifier}</classifier>
</dependency>
<dependency>
<groupId>org.scala-lang</groupId>
Expand Down

0 comments on commit 01fce6c

Please sign in to comment.