Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How cal i paralle my source code its too long and take time to run?

1 visualización (últimos 30 días)
Mira le
Mira le el 15 de En. de 2020
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
please help me
I 've already implemented a code with many functions and its take more than day to run, I want to paralle this code how can we do that?
  2 comentarios
darova
darova el 15 de En. de 2020
Please attach all your function and your code
Mohammad Sami
Mohammad Sami el 16 de En. de 2020
You need to think about which parts of your code can be run in parallel.
One option can be use to parfor loops instead of for loops. This only works if your loop code does not depend on the output of previous loop.

Respuestas (1)

Hiro Yoshino
Hiro Yoshino el 16 de En. de 2020
if you have parallel computing toolbox, this must be the best option to take.
You don't need to be bothered with the hastle you would need to work on without the toolbox.
  1 comentario
Walter Roberson
Walter Roberson el 16 de En. de 2020
most of the time, untuned parallel code is slower than the original code, and most of the time, editing code to be faster with parallel toolbox is a hassle.
Never use the Parallel Computing toolbox with the expectation that you will avoid hassle by using it. However with experience sometimes the hassle is not bad, and sometimes you can get pretty good performance improvements.

La pregunta está cerrada.

Etiquetas

Productos


Versión

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by