Borrar filtros
Borrar filtros

increasing CPU, memory of Matlab

5 visualizaciones (últimos 30 días)
Margarita Aparina
Margarita Aparina el 11 de Ag. de 2022
Respondida: Sanjana el 8 de Jun. de 2023
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 comentario
Walter Roberson
Walter Roberson el 11 de Ag. de 2022
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 .

Iniciar sesión para comentar.

Respuestas (1)

Sanjana
Sanjana el 8 de Jun. de 2023
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!

Categorías

Más información sobre Troubleshooting in Simulink Real-Time en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by