You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemds.apache.org by mb...@apache.org on 2023/10/26 20:08:52 UTC
[systemds] branch main updated: [SYSTEMDS-3636] Fix arg passing in single-threaded tsmm kernel dispatch
This is an automated email from the ASF dual-hosted git repository.
mboehm7 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/systemds.git
The following commit(s) were added to refs/heads/main by this push:
new ba20e11d31 [SYSTEMDS-3636] Fix arg passing in single-threaded tsmm kernel dispatch
ba20e11d31 is described below
commit ba20e11d3103df6e76c154e356a7fb89e84d8604
Author: Matthias Boehm <mb...@gmail.com>
AuthorDate: Thu Oct 26 22:08:20 2023 +0200
[SYSTEMDS-3636] Fix arg passing in single-threaded tsmm kernel dispatch
---
src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixMult.java | 2 +-
src/test/java/org/apache/sysds/test/component/matrix/TSMMTest.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixMult.java b/src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixMult.java
index 03dcbc359b..0f08176fe1 100644
--- a/src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixMult.java
+++ b/src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixMult.java
@@ -441,7 +441,7 @@ public class LibMatrixMult
ret.allocateBlock();
//core tsmm operation
- matrixMultTransposeSelf(m1, ret, leftTranspose, 0, m1.rlen);
+ matrixMultTransposeSelf(m1, ret, leftTranspose, 0, ret.rlen);
//post-processing
if(copyToLowerTriangle){
diff --git a/src/test/java/org/apache/sysds/test/component/matrix/TSMMTest.java b/src/test/java/org/apache/sysds/test/component/matrix/TSMMTest.java
index e99f4803dd..9e464077d0 100644
--- a/src/test/java/org/apache/sysds/test/component/matrix/TSMMTest.java
+++ b/src/test/java/org/apache/sysds/test/component/matrix/TSMMTest.java
@@ -90,7 +90,7 @@ public class TSMMTest {
final MMTSJType mType = MMTSJType.LEFT;
final MatrixBlock expected = in.transposeSelfMatrixMultOperations(null, mType, 1);
- if(k > 1) // test multithread
+ if(k > 1) // test multi-threaded
testCompare(expected, in, "Compare single vs multithread");
final boolean isSparse = in.isInSparseFormat();