Running EXE files parallel
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SHREENATH KRISHNAMURTHY
am 27 Okt. 2015
Beantwortet: SHREENATH KRISHNAMURTHY
am 4 Jul. 2017
I have written the following line for calling the cysim_solver. exe file
if 0, system(strcat('sim/CySim_solver sim/CySim', ' > out')); else system(strcat('sim\CySim_solver.exe sim\CySim', ' > out')); end;
I want cysim_solver.exe to use all the 4 processors in my PC. Can you tell me how I can do it ?
0 Kommentare
Antworten (2)
Sean de Wolski
am 27 Okt. 2015
With parallel computing toolbox:
parfor ii = 1:n
system(sprintf('foo.exe -%i',ii))
end
You have to build up the system call based on the iteration.
0 Kommentare
SHREENATH KRISHNAMURTHY
am 4 Jul. 2017
Sorry again for the late response for the question I tried the parfor in the comment above and I get the following message
The process cannot access the file because it is being used by another process. 'Cysim_solver.exe' is not recognized as an internal or external command, operable program or batch file.
My objective is to get a faster output so I would like to use multiple cores. Can this be done using matlab parallel tool box
0 Kommentare
Siehe auch
Kategorien
Mehr zu Parallel Computing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!