Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 36d00858 authored by hhakim's avatar hhakim
Browse files

Fix MatSparse<FPP, GPU2>::tocpu(MatSparse<FPP, Cpu>&) in case of zero MatSparse.

parent cdd4f1ee
No related branches found
No related tags found
No related merge requests found
Pipeline #847775 passed
...@@ -190,6 +190,8 @@ namespace Faust ...@@ -190,6 +190,8 @@ namespace Faust
{ {
sp_mat.resize(nnz, nrows, ncols); sp_mat.resize(nnz, nrows, ncols);
} }
if(! sp_mat.getNonZeros())
return;
tocpu(sp_mat.getRowPtr(), sp_mat.getColInd(), sp_mat.getValuePtr()); tocpu(sp_mat.getRowPtr(), sp_mat.getColInd(), sp_mat.getValuePtr());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment