Resolves COMPMID-4156, COMPMID-4125
Change-Id: I408e51e9759448e6190490975ccab2c1bc07a813
Signed-off-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4927
Reviewed-by: TeresaARM <teresa.charlinreyes@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
end_out_height = output_height;
}
+ if(start_channel >= end_channel)
+ {
+ // Early exit in case of multiple threads parallelising on channels
+ return;
+ }
+
// Cast input and output pointers into the right types
const TInput *const inptr = static_cast<const TInput *>(_input) + start_channel;
TOutput *const outptr = static_cast<TOutput *>(_output) + start_channel;
end_out_height = output_height;
}
+ if(start_channel >= end_channel)
+ {
+ // Early exit in case of multiple threads parallelising on channels
+ return;
+ }
+
// Cast input and output pointers into the right types
const TInput *const inptr = static_cast<const TInput *>(_input) + start_channel;
TOutput *const outptr = static_cast<TOutput *>(_output) + start_channel;