-
Notifications
You must be signed in to change notification settings - Fork 271
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable passing a percentage as a value for --cores (#3357)
Fixes #3328 ``` --cores <count> Run the Dafny CLI using <n> cores, or using <XX%> of the machine's logical cores. [default: 6] ``` Default is 50% of logical cores. Sadly the help shows that number already being resolved. Changing that is complicated. <small>By submitting this pull request, I confirm that my contribution is made under the terms of the [MIT license](https://github.com/dafny-lang/dafny/blob/master/LICENSE.txt).</small>
1 parent
a75e209
commit bcf4042
Showing
5 changed files
with
68 additions
and
7 deletions.
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. |