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?

2 vues (au cours des 30 derniers jours)
A

Réponses (2)

Jan
Jan le 13 Juin 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.
  1 commentaire
yogan sganzerla
yogan sganzerla le 13 Juin 2015
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

Connectez-vous pour commenter.


Walter Roberson
Walter Roberson le 13 Juin 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 commentaires
yogan sganzerla
yogan sganzerla le 15 Juin 2015
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 le 15 Juin 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.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Parallel Computing Fundamentals dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by