Will parallel computing plus multiple matlab windows increase the processing efficiency?
2 views (last 30 days)
Show older comments
I have a computer with 16 physical cores to compute a very complex task T. When I use the parallel pool (all 16 workers were used) to process the task, the CPU utilization is ~13%. If I want to increase the processing efficiency and the CPU utlization, is it possible to split the tasks (e.g., two halfs T1 and T2) for multiple Matlab windows in the same computer (e.g., allocate T1 and T2 for 2 Matlab windows, each of which also use the paralle pool with 16 workers)? Would it be faster than running in 1 matlab window?
Thanks in advance for any help!
0 Comments
Accepted Answer
Pratyush
on 26 Sep 2023
Hi Rui,
Allocating different parts of a complex task to multiple instances of MATLAB running in separate windows on the same computer can potentially increase processing efficiency and CPU utilization.
By splitting the task T into two halves, T1 and T2, and allocating them to two MATLAB windows, each utilizing a parallel pool with 16 workers, you can effectively utilize all the available cores. This can lead to improved processing efficiency and higher CPU utilization compared to running the entire task in a single MATLAB window.
However, the overall speedup achieved by this approach depends on the nature of the task T and how well it can be divided into independent parts. If T can be easily partitioned into two halves that can be processed independently without significant communication or dependencies between them, then running them in separate MATLAB windows can provide a significant speedup.
Additionally, the speedup achieved by parallelism is subject to Amdahl's Law, which states that the maximum speedup is limited by the portion of the task that cannot be parallelized. If a significant portion of your task is inherently sequential and cannot be divided, the overall speedup may be less than expected.
More Answers (0)
See Also
Categories
Find more on Parallel Computing Fundamentals in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!