Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve parallel load balance in the interpreter. #2313

Merged
merged 2 commits into from
Sep 29, 2022

Conversation

quentin
Copy link
Member

@quentin quentin commented Sep 28, 2022

Update the parallel loop partitionning from N to 20*N with N being the number of threads.

We have noticed a significant improvement in thread load balancing (hence execution time) in the interpreter with this partitionning heuristics. The factor 20 is a bit arbitrary, but 10 wasn't as good for our typical workload. This choice can be discussed / revised.

Update the parallel loop partitionning from N to 20*N with N being the
number of threads.
@codecov
Copy link

codecov bot commented Sep 28, 2022

Codecov Report

Merging #2313 (ba99149) into master (b3403bf) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2313   +/-   ##
=======================================
  Coverage   77.38%   77.39%           
=======================================
  Files         461      461           
  Lines       29003    29004    +1     
=======================================
+ Hits        22445    22448    +3     
+ Misses       6558     6556    -2     
Impacted Files Coverage Δ
src/interpreter/Engine.cpp 84.08% <100.00%> (ø)
src/ram/transform/MakeIndex.cpp 86.25% <0.00%> (+0.05%) ⬆️
src/include/souffle/utility/ParallelUtil.h 85.27% <0.00%> (+1.55%) ⬆️

@b-scholz
Copy link
Member

Please, can you reformat the code changes?

Copy link
Member

@b-scholz b-scholz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the improvement!

@b-scholz b-scholz merged commit 7b84887 into souffle-lang:master Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants