When using Matlab Coder to codegen native Matlab functions, like conv2(), what type of performance should be expected from the generated code?

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 Commento

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'?

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su MATLAB Coder in Centro assistenza e File Exchange

Richiesto:

il 4 Nov 2020

Commentato:

il 5 Nov 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by