[ 
https://issues.apache.org/jira/browse/SYSTEMML-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15504102#comment-15504102
 ] 

Niketan Pansare commented on SYSTEMML-931:
------------------------------------------

A related issues to this JIRA can be reproduce by runnning 
org.apache.sysml.test.integration.applications.dml.ID3DMLTest:
1. Handling of empty block. I have tried to fix it in the commit: 
https://github.com/apache/incubator-systemml/pull/247/commits/4d2394b455d68b091adfc6cf9bba406a8414a1a7#diff-abd4c966d8f3d5e573509b3a01743655L546

2. Handling of nnz: This comes from the JCUDAObject's 
allocateForMatrixMultiply() method in line 
cudaMemcpy(Pointer.to(CnnzArray), C.rowPtr.withByteOffset(m * Sizeof.INT), 1 * 
Sizeof.INT, cudaMemcpyDeviceToHost);
The values where the bug occurs are CnnzArray=[-1] and m = 100.


> Error while allocating CSRPointer
> ---------------------------------
>
>                 Key: SYSTEMML-931
>                 URL: https://issues.apache.org/jira/browse/SYSTEMML-931
>             Project: SystemML
>          Issue Type: Sub-task
>            Reporter: Niketan Pansare
>
> org.apache.sysml.test.integration.functions.reorg.FullTransposeTest's 
> testTransposeRowVectorSparseSP() and testTransposeMatrixSparseSP() test cases 
> are failing while allocating CSRPointer.
> Caused by: jcuda.CudaException: cudaErrorMemoryAllocation
>       at jcuda.runtime.JCuda.checkResult(JCuda.java:437)
>       at jcuda.runtime.JCuda.cudaMalloc(JCuda.java:3811)
>       at 
> org.apache.sysml.runtime.instructions.gpu.context.JCudaObject$CSRPointer.allocateEmpty(JCudaObject.java:156)
>       at 
> org.apache.sysml.runtime.instructions.gpu.context.JCudaObject.allocateMemoryOnDevice(JCudaObject.java:464)
> [~nakul02]



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

Reply via email to