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 view (last 30 days)
Show older comments
A
0 Comments
Answers (2)
Jan
on 13 Jun 2015
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.
Walter Roberson
on 13 Jun 2015
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 Comments
Walter Roberson
on 15 Jun 2015
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.
See Also
Categories
Find more on Parallel for-Loops (parfor) in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!