Mentions légales du service

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

Fix GPU2 MatGeneric::to_string wrong use of Cpu parameter for MatBSR.

parent b9ffc73e
No related merge requests found
...@@ -92,7 +92,7 @@ std::string Faust::MatGeneric<FPP,GPU2>::to_string(int32_t nrows, int32_t ncols, ...@@ -92,7 +92,7 @@ std::string Faust::MatGeneric<FPP,GPU2>::to_string(int32_t nrows, int32_t ncols,
str << dynamic_cast<const MatBSR<FPP, GPU2>*>(this)->to_string_blocks(transpose); str << dynamic_cast<const MatBSR<FPP, GPU2>*>(this)->to_string_blocks(transpose);
str << ", density "<< density <<", nnz "<< nnz; str << ", density "<< density <<", nnz "<< nnz;
if(type == BSR) if(type == BSR)
str << " (nnz blocks: " << dynamic_cast<const MatBSR<FPP, Cpu>*>(this)->getNBlocks() << ")"; str << " (nnz blocks: " << dynamic_cast<const MatBSR<FPP, GPU2>*>(this)->getNBlocks() << ")";
str << ", addr: " << this; str << ", addr: " << this;
//TODO: add gpu_mod data addr //TODO: add gpu_mod data addr
str <<std::endl; str <<std::endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment