Mentions légales du service

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

Fix non-initialized pointers in GPU2 gemm_gen.

parent 28807c6a
Branches
Tags
No related merge requests found
...@@ -105,12 +105,12 @@ namespace Faust ...@@ -105,12 +105,12 @@ namespace Faust
template<typename FPP> template<typename FPP>
void gemm_gen(const MatGeneric<FPP,GPU2> & A, const MatGeneric<FPP,GPU2> & B, MatDense<FPP,GPU2> & C, const FPP alpha, const FPP beta, char typeA, char typeB) void gemm_gen(const MatGeneric<FPP,GPU2> & A, const MatGeneric<FPP,GPU2> & B, MatDense<FPP,GPU2> & C, const FPP alpha, const FPP beta, char typeA, char typeB)
{ {
const MatSparse<FPP, GPU2>* spA; const MatSparse<FPP, GPU2>* spA = nullptr;
const MatSparse<FPP, GPU2>* spB; const MatSparse<FPP, GPU2>* spB = nullptr;
const MatDense<FPP, GPU2>* dsA; const MatDense<FPP, GPU2>* dsA = nullptr;
const MatDense<FPP, GPU2>* dsB; const MatDense<FPP, GPU2>* dsB = nullptr;
const MatBSR<FPP, GPU2>* bsrA; const MatBSR<FPP, GPU2>* bsrA = nullptr;
const MatBSR<FPP, GPU2>* bsrB; const MatBSR<FPP, GPU2>* bsrB = nullptr;
// downcast and call the proper function // downcast and call the proper function
spA = dynamic_cast<const Faust::MatSparse<FPP,GPU2>*>(&A); spA = dynamic_cast<const Faust::MatSparse<FPP,GPU2>*>(&A);
if(! spA) if(! spA)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment