Skip to content

Commit

Permalink
patchkernel: avoid building partitioning information when the patch i…
Browse files Browse the repository at this point in the history
…s on one processor
  • Loading branch information
andrea-iob committed Nov 19, 2021
1 parent 3f15bd1 commit 7a6a6be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/patchkernel/patch_kernel_parallel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3765,6 +3765,8 @@ bool PatchKernel::arePartitioningInfoDirty(bool global) const
{
if (!isPartitioned()) {
return false;
} else if (getProcessorCount() == 1) {
return false;
}

bool partitioningInfoDirty = m_partitioningInfoDirty;
Expand All @@ -3785,6 +3787,8 @@ void PatchKernel::setPartitioningInfoDirty(bool dirty)
{
if (dirty && !isPartitioned()) {
return;
} else if (getProcessorCount() == 1) {
return;
}

m_partitioningInfoDirty = dirty;
Expand Down

0 comments on commit 7a6a6be

Please sign in to comment.