Running mutiple .m file each on own thread

I have a optimization problem that is bottleneck as it requires allot of single thread process. I therefore can not uses the full potential of my quad core computer. However i am doing a parametric study and need to run it many times.
So my question is can i run 4 .m files each on its own thread. Therefore i can run the models 4 time faster. or at least faster.
Would opening matlab 4 time have the same effect (assigning each it's own core in task manger)?
or is there a way in matlab
Ross

답변 (1개)

Matt J
Matt J 2013년 5월 13일
편집: Matt J 2013년 5월 14일

1 개 추천

If you have the Parallel Computing Toolbox, you can use SPMD. Otherwise, running 4 separate sessions is about the only thing you can do.

댓글 수: 1

Ross
Ross 2013년 5월 14일
편집: Ross 2013년 5월 14일
I had a look at SPMD it did not run for me. something about transparent variables. from my understanding this is something i want to avoid as each script uses the same variables including some global ones. Each file would need to run completely independently of each other.
Will batch do this as i had a go with it and it seemed to work even though it gave me warnings it ran.

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

카테고리

도움말 센터File Exchange에서 MATLAB Compiler에 대해 자세히 알아보기

질문:

2013년 5월 13일

Community Treasure Hunt

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

Start Hunting!

Translated by