increasing CPU, memory of Matlab

조회 수: 3 (최근 30일)
Margarita Aparina
Margarita Aparina 2022년 8월 11일
답변: Sanjana 2023년 6월 8일
How can I correctly apply this code -ffast-math in Matlab script? I want to apply GCC compiler -ffast-math option to increase CPU of the Matlab computer. This option is from Simulink® Real-Time™ models
  댓글 수: 1
Walter Roberson
Walter Roberson 2022년 8월 11일
Simulink Real-Time does not use gcc for the SpeedGoat target (or at least it does not use MinGW). It uses the development environment for BlackBerry® QNX® Neutrino® which is the QNX Momentics Tools Suite .

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

답변 (1개)

Sanjana
Sanjana 2023년 6월 8일
Hi Margarita,
As per my understanding, you are looking for methods to improve the performance of the code by adding the “-ffast-math”, flag for the GCC compiler, used in Simulink Real-Time.
One potential solution to optimize your code is to specify the “-ffast-math” flag in the make file generated for the application and then rebuild the application, this would result in faster optimized code.
Please, refer to the following link, for further information on different techniques to improve code Performance,
Hope this helps!

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by