Will parallel computing plus multiple matlab windows increase the processing efficiency?

3 次查看(过去 30 天)
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!

采纳的回答

Pratyush
Pratyush 2023-9-26
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.

更多回答(0 个)

类别

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