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
Walter Roberson
Walter Roberson 2022년 5월 8일
In sufficiently new versions you can use "background pools" without the toolbox.
arjun ramesh
arjun ramesh 2022년 5월 8일
Iam using a 2019 b version and it's still says 'parpool' require a parallel computing toolbox

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

답변 (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