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

Generate file class dictionary after file classification for stability #944

Merged
merged 2 commits into from Nov 22, 2019

Conversation

pmatilai
Copy link
Contributor

Store the file type strings in the classifier, and generate the dictionary and its ids serially after the parallel section completes to ensure stable order. Besides making the classifying really run in parallel again, this also moves the pool- and file-counting related constraints out of the parallel section for theoretically better parallelization.

This is an alternative fix to #934, using omp order clause simply made the classification run serially.

The order directive might be useful in some cases, but for our purposes
it very effectively serializes the whole classification operation.
Which means that we get the speed of serial classification with the
complexity of parallel execution, ugh. Revert, we need a better fix.

This reverts commit 3691d99.
Store the file type strings in the classifier, and generate the dictionary
and its ids serially after the parallel section completes to ensure
stable order. Besides making the classifying really run in parallel
again, this also moves the pool- and file-counting related constraints
out of the parallel section for theoretically better parallelization.

Fixes rpm-software-management#934
@pmatilai
Copy link
Contributor Author

@bmwiedemann if you can verify this works for you, I'd appreciate.

@bmwiedemann
Copy link
Contributor

bmwiedemann commented Nov 21, 2019

Tested it with our khmeros-fonts package build. Results are still reproducible.

@pmatilai
Copy link
Contributor Author

Ack, thanks for verifying.

@pmatilai pmatilai merged commit b55fef0 into rpm-software-management:master Nov 22, 2019
@pmatilai pmatilai deleted the fc-par-pr branch November 22, 2019 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants