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 件のコメント

Mike Hosea
Mike Hosea 2020 年 11 月 5 日
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 ExchangeMATLAB Coder についてさらに検索

製品

リリース

R2018b

質問済み:

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