2
2
.AUTHOR
3
3
sp00n
4
4
.VERSION
5
- 0.10.0.0alpha1
5
+ 0.10.0.0alpha2
6
6
.DESCRIPTION
7
7
Sets the affinity of the selected stress test program process to only one
8
8
core and cycles through all the cores which allows to test the stability of
23
23
24
24
25
25
# Our current version
26
- $version = '0.10.0.0alpha1 '
26
+ $version = '0.10.0.0alpha2 '
27
27
28
28
29
29
# This defines the strict mode
@@ -4640,9 +4640,9 @@ function Initialize-AutomaticTestMode {
4640
4640
4641
4641
4642
4642
# The Automatic Test Mode without resuming from a reboot
4643
+ # Get the Automatic Test Mode starting values from the settings
4643
4644
if (!$voltageStartValuesString) {
4644
- # Get the Automatic Test Mode starting values from the settings
4645
- $voltageStartValuesString = $settings['AutomaticTestMode']['startValues'].Trim()
4645
+ $voltageStartValuesString = $settings['AutomaticTestMode']['startValues']
4646
4646
4647
4647
Write-Debug('The Automatic Test Mode starting values from the settings:')
4648
4648
Write-Debug($voltageStartValuesString)
@@ -4668,6 +4668,7 @@ function Initialize-AutomaticTestMode {
4668
4668
}
4669
4669
}
4670
4670
4671
+
4671
4672
# The number of settings must equal the number of cores or be exactly one value
4672
4673
if ($voltageStartValuesArray.Count -ne $numPhysCores) {
4673
4674
# If it's only a single value, apply this value to each core
@@ -4678,11 +4679,18 @@ function Initialize-AutomaticTestMode {
4678
4679
else {
4679
4680
$msg = 'The number of ' + $modeDescription + ' starting values needs to match the number of cores'
4680
4681
$msg += [Environment]::NewLine + 'or be a single value for all cores!'
4682
+ $msg += [Environment]::NewLine + '(' + $numPhysCores + ' cores found, but ' + $(if ($voltageStartValuesArray.Count -le $numPhysCores) { 'only ' } else { '' }) + $voltageStartValuesArray.Count + ' starting values)'
4681
4683
4682
4684
Exit-WithFatalError -text $msg
4683
4685
}
4684
4686
}
4685
4687
4688
+
4689
+ # We can have only integer values at this point
4690
+ $voltageStartValuesArray = $voltageStartValuesArray | ForEach-Object { [Int] $_ }
4691
+
4692
+
4693
+ # Curve Optimizer has a limit
4686
4694
if (!$isIntelProcessor) {
4687
4695
if (@($voltageStartValuesArray | Where-Object { [Math]::Abs($_) -gt $limitForCoValues }).Count -gt 0) {
4688
4696
Exit-WithFatalError -text ('Found invalid values (either higher or lower than +-' + $limitForCoValues + ')' + [Environment]::NewLine + $voltageStartValuesArray)
@@ -4761,6 +4769,10 @@ function Get-CurveOptimizerValues {
4761
4769
$msg += [Environment]::NewLine + $stdErr
4762
4770
}
4763
4771
4772
+ if ($stdOut) {
4773
+ $msg += [Environment]::NewLine + $stdOut
4774
+ }
4775
+
4764
4776
throw($msg)
4765
4777
}
4766
4778
@@ -4841,6 +4853,10 @@ function Set-CurveOptimizerValues {
4841
4853
$msg += [Environment]::NewLine + $stdErr
4842
4854
}
4843
4855
4856
+ if ($stdOut) {
4857
+ $msg += [Environment]::NewLine + $stdOut
4858
+ }
4859
+
4844
4860
throw($msg)
4845
4861
}
4846
4862
@@ -4909,6 +4925,10 @@ function Get-IntelVoltageOffset {
4909
4925
$msg += [Environment]::NewLine + $stdErr
4910
4926
}
4911
4927
4928
+ if ($stdOut) {
4929
+ $msg += [Environment]::NewLine + $stdOut
4930
+ }
4931
+
4912
4932
throw($msg)
4913
4933
}
4914
4934
@@ -4984,6 +5004,10 @@ function Set-IntelVoltageOffset {
4984
5004
$msg += [Environment]::NewLine + $stdErr
4985
5005
}
4986
5006
5007
+ if ($stdOut) {
5008
+ $msg += [Environment]::NewLine + $stdOut
5009
+ }
5010
+
4987
5011
throw($msg)
4988
5012
}
4989
5013
@@ -10148,6 +10172,10 @@ function Get-ProcessorCoresInformation {
10148
10172
$msg += [Environment]::NewLine + $stdErr
10149
10173
}
10150
10174
10175
+ if ($stdOut) {
10176
+ $msg += [Environment]::NewLine + $stdOut
10177
+ }
10178
+
10151
10179
throw($msg)
10152
10180
}
10153
10181
0 commit comments