Skip to content

Commit 0156c58

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 808cba2 + 64651ec commit 0156c58

File tree

172 files changed

+9463
-8186
lines changed

Some content is hidden

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

172 files changed

+9463
-8186
lines changed

.github/workflows/javaTests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
"**.functions.builtin.part1.**",
7474
"**.functions.builtin.part2.**",
7575
"**.functions.frame.**,**.functions.indexing.**,**.functions.io.**,**.functions.iogen.**",
76-
"**.functions.dnn.**",
76+
"**.functions.dnn.**,**.functions.ooc.**",
7777
"**.functions.paramserv.**",
7878
"**.functions.recompile.**,**.functions.misc.**",
7979
"**.functions.mlcontext.**",
@@ -149,7 +149,7 @@ jobs:
149149
run: mvn jacoco:report
150150

151151
- name: Upload coverage to Codecov
152-
uses: codecov/[email protected].2
152+
uses: codecov/[email protected].3
153153
if: github.repository_owner == 'apache'
154154
with:
155155
fail_ci_if_error: false

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
black \
119119
opt-einsum \
120120
nltk
121-
121+
122122
- name: Build Python Package
123123
run: |
124124
cd src/main/python

bin/systemds

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ if [ $WORKER == 1 ]; then
413413
print_out "# starting Federated worker on port $PORT"
414414
CMD=" \
415415
java $SYSTEMDS_STANDALONE_OPTS \
416+
--add-modules=jdk.incubator.vector \
416417
$LOG4JPROPFULL \
417418
-jar $SYSTEMDS_JAR_FILE \
418419
-w $PORT \
@@ -422,6 +423,7 @@ elif [ "$FEDMONITORING" == 1 ]; then
422423
print_out "# starting Federated backend monitoring on port $PORT"
423424
CMD=" \
424425
java $SYSTEMDS_STANDALONE_OPTS \
426+
--add-modules=jdk.incubator.vector \
425427
$LOG4JPROPFULL \
426428
-jar $SYSTEMDS_JAR_FILE \
427429
-fedMonitoring $PORT \
@@ -433,6 +435,7 @@ elif [ $SYSDS_DISTRIBUTED == 0 ]; then
433435
CMD=" \
434436
java $SYSTEMDS_STANDALONE_OPTS \
435437
$LOG4JPROPFULL \
438+
--add-modules=jdk.incubator.vector \
436439
-jar $SYSTEMDS_JAR_FILE \
437440
-f $SCRIPT_FILE \
438441
-exec $SYSDS_EXEC_MODE \
@@ -442,6 +445,7 @@ else
442445
print_out "# Running script $SCRIPT_FILE distributed with opts: $*"
443446
CMD=" \
444447
spark-submit $SYSTEMDS_DISTRIBUTED_OPTS \
448+
--add-modules=jdk.incubator.vector \
445449
$SYSTEMDS_JAR_FILE \
446450
-f $SCRIPT_FILE \
447451
-exec $SYSDS_EXEC_MODE \

docker/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# Build the docker containers
2424

2525
# The first build is for running systemds through docker.
26-
docker image build -f docker/sysds.Dockerfile -t apache/systemds:latest .
26+
# docker image build -f docker/sysds.Dockerfile -t apache/systemds:latest .
2727

2828
# The second build is for testing systemds. This image installs the R dependencies needed to run the tests.
2929
docker image build -f docker/testsysds.Dockerfile -t apache/systemds:testing-latest .

docker/entrypoint.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ export MAVEN_OPTS="-Xmx512m"
3030

3131
log="/tmp/sysdstest.log"
3232
mvn -ntp -B test-compile 2>&1 | grep -E "BUILD|Total time:|---|Building SystemDS"
33-
mvn -ntp -B test -D maven.test.skip=false -D automatedtestbase.outputbuffering=true -D test=$1 2>&1 | grep -v "already exists in destination." | tee $log
33+
mvn -ntp -B test -D maven.test.skip=false -D automatedtestbase.outputbuffering=true -D test=$1 2>&1 \
34+
| grep -v "already exists in destination." \
35+
| grep -v 'WARNING: Using incubator modules' | tee $log
3436

3537
# Merge Federated test runs.
3638
[ -f target/jacoco.exec ] && mv target/jacoco.exec target/jacoco_main.exec

pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
<!-- aws-java-sdk-bundle version should align with hadoop-aws version -->
6868
<!-- aws-java-sdk-bundle.version>1.12.367</aws-java-sdk-bundle.version -->
6969
<!-- Set java compile level via argument, ex: 1.8 1.9 10 11-->
70-
<java.level>11</java.level>
70+
<java.level>17</java.level>
7171
<java.version>{java.level}</java.version>
7272
<!-->Testing settings<!-->
7373
<maven.test.skip>false</maven.test.skip>
@@ -92,6 +92,7 @@
9292
--add-opens=java.base/java.lang.ref=ALL-UNNAMED
9393
--add-opens=java.base/java.util.concurrent=ALL-UNNAMED
9494
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
95+
--add-modules=jdk.incubator.vector
9596
</jvm.addopens>
9697
</properties>
9798

@@ -357,6 +358,9 @@
357358
<source>${java.level}</source>
358359
<target>${java.level}</target>
359360
<release>${java.level}</release>
361+
<compilerArgs>
362+
<arg>--add-modules=jdk.incubator.vector</arg>
363+
</compilerArgs>
360364
</configuration>
361365
</plugin>
362366

@@ -904,6 +908,7 @@
904908
<notimestamp>true</notimestamp>
905909
<failOnWarnings>false</failOnWarnings>
906910
<quiet>true</quiet>
911+
<additionalJOption>--add-modules=jdk.incubator.vector</additionalJOption>
907912
<skip>${doc.skip}</skip>
908913
<show>public</show>
909914
<source>${java.level}</source>

scripts/builtin/raGroupby.dml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,22 @@ m_raGroupby = function (Matrix[Double] X, Integer col, String method)
132132
# Set value of final output
133133
Y = matrix(0, rows=numGroups, cols=totalCells)
134134
Y[,1] = key_unique
135-
Y[,2:ncol(Y)] = matrix(Y_temp_reduce, rows=numGroups, cols=totalCells-1)
135+
136+
# The permutation matrix creates a structure where each group's data
137+
# may not fill exactly maxRowsInGroup rows.
138+
# If needed, we need to pad to the expected size first.
139+
expectedRows = numGroups * maxRowsInGroup
140+
actualRows = nrow(Y_temp_reduce)
141+
142+
if(actualRows < expectedRows) {
143+
# Pad Y_temp_reduce with zeros to match expected structure
144+
Y_tmp_padded = matrix(0, rows=expectedRows, cols=ncol(Y_temp_reduce))
145+
Y_tmp_padded[1:actualRows,] = Y_temp_reduce
146+
} else {
147+
Y_tmp_padded = Y_temp_reduce
148+
}
149+
150+
Y[,2:ncol(Y)] = matrix(Y_tmp_padded, rows=numGroups, cols=totalCells-1)
136151
}
137152
}
138153

0 commit comments

Comments
 (0)