Skip to content

Commit

Permalink
[MINOR] Parallel Binary exam sparsity
Browse files Browse the repository at this point in the history
  • Loading branch information
Baunsgaard committed Feb 3, 2025
1 parent ebe758d commit 4e6b5d3
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ public void processInstruction(ExecutionContext ec) {
// Release the memory occupied by input matrices
ec.releaseMatrixInput(input1.getName(), input2.getName());
// Ensure right dense/sparse output representation (guarded by released input memory)
if(checkGuardedRepresentationChange(inBlock1, inBlock2, retBlock))
retBlock.examSparsity();
if(checkGuardedRepresentationChange(inBlock1, inBlock2, retBlock)){
int k = (_optr instanceof BinaryOperator) ? ((BinaryOperator) _optr).getNumThreads() : 1;
retBlock.examSparsity(k);
}
}

// Attach result matrix with MatrixObject associated with output_name
Expand Down

0 comments on commit 4e6b5d3

Please sign in to comment.