The code generated using the coder runs 2x slower!!! Please help in optimizing the speed

조회 수: 2 (최근 30일)
Hi. I have generated C++ code using the coder laptop. I have used these generated C++ source codes in my VS 2010 solution. The exe runs 2x slower than Matlab version. I have used dynamic memory allocation while generating the C++ codes. Please help me in optimizing the speed. Also I used parfor to speed up the execution but when I check the performance of the EXE, it doesn't even use more than 25% of the computational power of the system. Is openMP supported in VS 2010?
  댓글 수: 1
Jan
Jan 2015년 12월 8일
편집: Jan 2015년 12월 8일
It is impossible to suggest improvements without seeing the code. Do you mean "VS 2010 Professional"?

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Execution Speed에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by