This is an automated email from the ASF dual-hosted git repository.
baunsgaard 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 9487373906 [MINOR] fix empty nnz Compressed LLM
9487373906 is described below
commit 948737390683c2a7b11e3f79d2a0303da4c77738
Author: Sebastian Baunsgaard <[email protected]>
AuthorDate: Mon Oct 30 15:33:43 2023 +0100
[MINOR] fix empty nnz Compressed LLM
---
.../java/org/apache/sysds/runtime/compress/lib/CLALibLeftMultBy.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/src/main/java/org/apache/sysds/runtime/compress/lib/CLALibLeftMultBy.java
b/src/main/java/org/apache/sysds/runtime/compress/lib/CLALibLeftMultBy.java
index 30c1109d3a..d0983d4ae0 100644
--- a/src/main/java/org/apache/sysds/runtime/compress/lib/CLALibLeftMultBy.java
+++ b/src/main/java/org/apache/sysds/runtime/compress/lib/CLALibLeftMultBy.java
@@ -168,8 +168,8 @@ public final class CLALibLeftMultBy {
final List<AColGroup> fLeft = CLALibUtils.filterGroups(leftCG,
cL);
// Force dense output
- ret.setNonZeros((long) ret.getNumRows() * ret.getNumColumns());
ret.allocateDenseBlock();
+ ret.setNonZeros((long) ret.getNumRows() * ret.getNumColumns());
final ExecutorService ex = CommonThreadPool.get(k);
final List<Future<MatrixBlock>> t = new ArrayList<>();
@@ -196,6 +196,7 @@ public final class CLALibLeftMultBy {
outerProduct(cL, CLALibUtils.getColSum(fRight,
cr, sd), retV);
if(containsRight)// if right -- multiply right with
left sum
outerProduct(CLALibUtils.getColSum(fLeft, rl,
sd), cR, retV);
+
for(Future<MatrixBlock> f : t) {
MatrixBlock mb = f.get();
if(!mb.isEmpty()) {