Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 814c6776 authored by hhakim's avatar hhakim
Browse files

Fix issue #234 about GPU2 MatDense and MatSparse constructor calls ambiguity...

Fix issue #234 about GPU2 MatDense and MatSparse constructor calls ambiguity in faust_TransformHelper_gpu.hpp.
parent 0c971655
Branches
Tags
No related merge requests found
......@@ -765,13 +765,13 @@ template<typename FPP>
{
if(curfac_ds = dynamic_cast<MatDense<FPP, GPU2>*>(curfac))
{
auto real_fac = new MatDense<Real<FPP>,GPU2>(curfac->getNbRow(), curfac->getNbCol());
auto real_fac = new MatDense<Real<FPP>,GPU2>(curfac->getNbRow(), curfac->getNbCol(), /* cpu_data*/ nullptr, /* no_alloc*/ false, /* dev_id*/ -1, /* stream*/ nullptr);
curfac_ds->real(*real_fac);
real_data.push_back(real_fac);
}
else if(curfac_sp = dynamic_cast<MatSparse<FPP, GPU2>*>(curfac))
{
auto real_fac = new MatSparse<Real<FPP>,GPU2>(curfac->getNbRow(), curfac->getNbCol());
auto real_fac = new MatSparse<Real<FPP>,GPU2>(curfac->getNbRow(), curfac->getNbCol(), /* nnz*/ 0, /* values */ nullptr, /* rowptr*/ nullptr, /* colinds*/ nullptr);
curfac_sp->real(*real_fac);
real_data.push_back(real_fac);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment