Mentions légales du service

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

Fix of TransformHelper<FPP, GPU2>::sliceMultiply in case of nullptr out buffer...

Fix of TransformHelper<FPP, GPU2>::sliceMultiply in case of nullptr out buffer + update to gpu_mod@c815fd36.
parent f2d972ce
Branches
No related tags found
No related merge requests found
Pipeline #834093 skipped
...@@ -914,7 +914,8 @@ namespace Faust ...@@ -914,7 +914,8 @@ namespace Faust
MatDense<FPP,GPU2> gpu_M = this->transform->sliceMultiply(s, gpu_X, this->isTransposed2char()); MatDense<FPP,GPU2> gpu_M = this->transform->sliceMultiply(s, gpu_X, this->isTransposed2char());
if(cpu_out == nullptr) if(cpu_out == nullptr)
{ {
auto out_nrows = this->is_row_sliced()?s[0].end_id-s[0].start_id:this->getNbRow(); auto is_row_sliced = s[0].end_id != this->getNbRow() || s[0].start_id != 0;
auto out_nrows = is_row_sliced?s[0].end_id-s[0].start_id:this->getNbRow();
auto out_ncols = X_ncols; auto out_ncols = X_ncols;
cpu_out = new FPP[out_nrows*out_ncols*sizeof(FPP)]; cpu_out = new FPP[out_nrows*out_ncols*sizeof(FPP)];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment