Borrar filtros
Borrar filtros

Calling fortran executable file from matlab is much slower

1 visualización (últimos 30 días)
V
V el 17 de Nov. de 2023
I have a fortran code compiled into a exe file. I can run it directly through the command line, or simply call the executable from matlab. This two approaches lead to massively different execution speeds and I am unsure why.
If I run the executable file from the command line, the first part of the code runs in **1,000** seconds with all cores/threads of my computer being used:
If instead I call the fortran executable from matlab it does not use all cores/threads and takes approximately **1,400** seconds to run.
I am calling the code using: `system('path\LoopFortranToMatlab.exe')`

Respuestas (0)

Categorías

Más información sobre Fortran with MATLAB 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