You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@systemml.apache.org by "Nakul Jindal (JIRA)" <ji...@apache.org> on 2016/07/01 01:10:11 UTC

[jira] [Updated] (SYSTEMML-774) No check from LibMatrixDataGen for thread safe SparseBlock

     [ https://issues.apache.org/jira/browse/SYSTEMML-774?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nakul Jindal updated SYSTEMML-774:
----------------------------------
    Description: 
The SparseBlock implementations SparseBlock{CSR,COO} are not thread safe.
When MatrixBlock.DEFAULT_SPARSEBLOCK is set to SparseBlock.Type.CSR, and a rand() method is used to create a sparse matrix, like so:

X = rand(rows=200, cols=10000, min=0, max=4, pdf="uniform", sparsity=0.3)

It crashes because LibMatrixDatagen.generateRandomMatrix(MatrixBlock, RandomMatrixGenerator, long[], Well1024a, long, int ) does not check if the underlying SparseBlock implementation isThreadSafe.

  was:
The SparseBlock implementations SparseBlock{CSR,COO} are not thread safe.
When MatrixBlock.DEFAULT_SPARSEBLOCK is set to SparseBlock.Type.CSR, and a rand() method is used to create a sparse matrix, like so:
```
X = rand(rows=200, cols=10000, min=0, max=4, pdf="uniform", sparsity=0.3)
```
It crashes because ``LibMatrixDatagen.generateRandomMatrix(MatrixBlock, RandomMatrixGenerator, long[], Well1024a, long, int )`` does not check if the underlying SparseBlock implementation ``isThreadSafe``.


> No check from LibMatrixDataGen for thread safe SparseBlock
> ----------------------------------------------------------
>
>                 Key: SYSTEMML-774
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-774
>             Project: SystemML
>          Issue Type: Bug
>          Components: Runtime
>            Reporter: Nakul Jindal
>
> The SparseBlock implementations SparseBlock{CSR,COO} are not thread safe.
> When MatrixBlock.DEFAULT_SPARSEBLOCK is set to SparseBlock.Type.CSR, and a rand() method is used to create a sparse matrix, like so:
> X = rand(rows=200, cols=10000, min=0, max=4, pdf="uniform", sparsity=0.3)
> It crashes because LibMatrixDatagen.generateRandomMatrix(MatrixBlock, RandomMatrixGenerator, long[], Well1024a, long, int ) does not check if the underlying SparseBlock implementation isThreadSafe.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)