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 comentario

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

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Coder en Centro de ayuda y File Exchange.

Preguntada:

el 4 de Nov. de 2020

Comentada:

el 5 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by