Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Automatically add subproofs to parallelized execution once they become available #2065
Automatically add subproofs to parallelized execution once they become available #2065
Changes from 23 commits
5a9f675
cd06fab
60df617
c3fbee7
f60c1bc
38126cd
25bf2ad
cb3dad8
932aad3
269dddc
3be4c85
e3e3807
2f8422b
eb6c48b
55c2331
e598e6c
17fbcc8
ac7e38f
a41cd8b
4f92dfc
2653909
358d873
255b03a
d3fa777
f73470a
0d38413
430762c
91ca5ba
26905df
0870782
6df8519
4679bd6
4eb0e8c
e039bf8
160d679
464a855
455f4fb
1fca561
ea7aef1
54d6b08
e4b6684
2137c71
163f835
f41c9bb
fcc46c4
f6ae8c0
42b298c
2ebe0b6
9cf86d8
440a553
5b738a0
830576e
f56acab
8656742
dc11c02
921541b
b0d18b2
0881fb7
4abac54
39596fc
de03318
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I understand correctly, at this point all futures are waited before pending tasks are submitted. If so, this is not good for utilization.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw, are two lists (
futures
,tasks
) necessary? Given a single list ofpedning
futures, in each iteration you can try something likepending
is empty thenbreak
.done
futures inpending
thencontinue
.done
future frompending
and check it's results.pending
.pending
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize this was what
wait
was doing. I've added the parameterreturn_when='FIRST_COMPLETED'
, so it should wait for any, not all now.I've also applied your suggestion and now there is only one list, and we just immediately add tasks to it rather than needing to wait for the next iteration.