-
Notifications
You must be signed in to change notification settings - Fork 268
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
Enable passing a percentage as a value for --cores #3357
Merged
keyboardDrummer
merged 10 commits into
dafny-lang:master
from
keyboardDrummer:coresPercentage
Jan 17, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
20821d4
Enable passing a percentage as a value for cores
keyboardDrummer 77e69cd
Fix uint vs int bug
keyboardDrummer 5fd43af
Update Source/DafnyCore/Options/BoogieOptionBag.cs
keyboardDrummer 24c7cdc
Merge branch 'master' into coresPercentage
keyboardDrummer f2fb6a9
Add release notes
keyboardDrummer 7434b7c
Merge branch 'master' into coresPercentage
keyboardDrummer bca91a9
Fix type error
keyboardDrummer 4708dab
Fix bug
keyboardDrummer 1235a1b
Fix zeroCores test
keyboardDrummer 9124be0
Merge branch 'master' into coresPercentage
keyboardDrummer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,22 @@ | ||
zeroCores.dfy(4,27): Error: A postcondition might not hold on this return path. | ||
zeroCores.dfy(4,21): Related location: This is the postcondition that might not hold. | ||
Number of cores to use must be greater than 0 | ||
|
||
Could not parse number earga | ||
|
||
Could not parse percentage earga% | ||
|
||
zeroCores.dfy(10,27): Error: A postcondition might not hold on this return path. | ||
zeroCores.dfy(10,21): Related location: This is the postcondition that might not hold. | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
zeroCores.dfy(10,27): Error: A postcondition might not hold on this return path. | ||
zeroCores.dfy(10,21): Related location: This is the postcondition that might not hold. | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
zeroCores.dfy(10,27): Error: A postcondition might not hold on this return path. | ||
zeroCores.dfy(10,21): Related location: This is the postcondition that might not hold. | ||
|
||
Dafny program verifier finished with 0 verified, 1 error | ||
zeroCores.dfy(10,27): Error: A postcondition might not hold on this return path. | ||
zeroCores.dfy(10,21): Related location: This is the postcondition that might not hold. | ||
|
||
Dafny program verifier finished with 0 verified, 1 error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enable passing a percentage value to the --cores option, to use a percentage of the total number of logical cores on the machine for verification. |
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.
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 don't understand this code part, can you please explain it to me? I get that you want to redirect the standard error to the file as well, but I'm surprised that you have to introduce a new rule for that.
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.
How would it know what
2>>
means without a new rule? It's a from scratch parser for lit commands so it doesn't understand anything by default. Maybe you could make it smart so if it understand2
and>>
separately it can also combine them, but it can't do that right now.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 mean, I'm surprised we hadn't had the need tor redirect error output before this PR, that's what I meant.
My comprehension problem was simpler. I just looked at the code above to see what it was doing, and I understand you are generalizing "2>", which I remembered was used in test cases. So that's good for me.