When using Matlab Coder to codegen native Matlab functions, like conv2(), what type of performance should be expected from the generated code?
Show older comments
When using Matlab Coder to codegen native Matlab functions, like conv2(), what type of performance should be expected from the generated code? We are trying to use Coder to create source code for multiple targets in a quick manner, but we are experiencing a significant slowdown when calling either the mex function or dynamiclly linked library. Looking at the source code generated it appears that the conv2() algorithm is just being implimented as a brute force approach.
Cheers,
Brent
1 Comment
Mike Hosea
on 5 Nov 2020
Different algorithms are generated depending on the circumstances, sometimes using BLAS, others multithreading. GPU Coder can generate some fast code for conv2. Can you provide more details on the version of MATLAB you are using and the sizes and types of your inputs to conv2? Is this 'full', 'same', or 'valid'?
Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!