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

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

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

도움말 센터File Exchange에서 MATLAB Coder에 대해 자세히 알아보기

질문:

2020년 11월 4일

댓글:

2020년 11월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by