필터 지우기
필터 지우기

Vectorization on generated code

조회 수: 2 (최근 30일)
Goksan ISIL
Goksan ISIL 2020년 4월 4일
Hi,
I understand that when array and matrix operations are used, rather than relying on for loops, Matlab enables vectorization. But I believe this is valid for the code that is running within the Matlab engine itself.
How about the vectorization for the C/C++ code that is generated from Matlab? I understand that normally compilers like Intel icpc enable automatic or forced vectorization, if the for loop thats written is vectorizable.
So in order to utilize vectorization on the Matlab generated code, do we need to manually enable it during the compilation process or is there another Matlab suggested way of enabling vectorization? Or does Matlab already generate "vectorized code" for C/C++? I'm not sure how that would be possible though since C/C++ are not mathematical languages by nature.
Thanks in advance
Göksan

답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by