I have to do a parallel simulation without a parallel simulation tool box? The main idea is to Remove a for loop that does one iteration after another to speed up computation.

4 次查看(过去 30 天)
I have long lines of code where iam trying to evaluate 36 rows of data having 7 columns. The iterations happen one after other via a for loop. To reduce computational time i have to use do parallel simulation but there is no parallel simulation toolbox available
  5 个评论

请先登录,再进行评论。

回答(1 个)

Walter Roberson
Walter Roberson 2022-5-8
You have a small number of possibilities:
  • upgrade to a version that supports background pools
  • obtain the parallel computing toolbox
  • use Java threads to do your processing in Java code
  • use system() to create additional matlab processes to execute some of the work
  • In Windows, use .NET to create additional processes to do some of the work
  • Use the file exchange contribution popen() to create additional processes to do some of the work
  • use mex C or C++ code to invoke parallel processing using OpenMP or pthreads or popen or whatever is available

类别

Help CenterFile Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by