Hey, I need to run my programa but it will run for 9 day ( one computer) . I want to know, if I use 2 computer the time os less? and how can i do it?

조회 수: 1 (최근 30일)
A

답변 (2개)

Jan
Jan 2015년 6월 13일
Start with using the profiler to find out the bottlenecks of the code. Then improve the code there. If e.g. the disk access consumes the most time, buying a SSD will be more efficient than using another computer. If the RAM is exhausted and the computer uses the disk as virtual memory, installing more RAM can acclerate the code by a factor of 100 (or 10 or 1000).
After optimizing the program for running on one computer, you can start to think of using the Parallel Programming Toolbox to split the work to run on multiple cores.
  댓글 수: 1
yogan sganzerla
yogan sganzerla 2015년 6월 13일
Yes, I understood. But what is the basic and intermediry things that is necessary to start a Parallel Programming Toolbox?
Now we have 2 computer with ----- and are connected with Router D-Link. Both are with MATLAB...
Please help me!
My facebook is https://www.facebook.com/yogan.sganzerla and my Skype is yogan.sf

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


Walter Roberson
Walter Roberson 2015년 6월 13일
You would need to install the Parallel Processing Toolkit, and the Distributed Computing Engine Toolbox, and configure and validate a cluster profile. Then in the code you would use parpool to request access to the resources. You would then use parfor or spmd to give the code to be executed by the workers.
The Distributed Computing Engine is expensive. You would not normally want to go that route first. Instead you would normally want to use a single multicore computer with lots of RAM, and the Parallel Computing Toolkit is able to use multiple cores on a single computer without needing the Distributed Computing engine.
  댓글 수: 4
yogan sganzerla
yogan sganzerla 2015년 6월 15일
Perfect Wallter, first in my loop there is equations, and i can't take variables
second, the equation to second for depends the first for.... the equation to third for depend the secondo for....
So I can't use parfor... Please, help me! what I need to do ??
Walter Roberson
Walter Roberson 2015년 6월 15일
If your code cannot be redesigned to work on blocks and merged the results, then you need to ensure that your loops are optimized, using vectorized arithmetic and logical variables where practical.
We would need to see your code to determine what can be done in your situation.

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

카테고리

Help CenterFile Exchange에서 Parallel Computing Toolbox에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by