Skip to content

Commit

Permalink
Enhance/cycling feedback (#192)
Browse files Browse the repository at this point in the history
Applying feedback from C74's review.

    Upper bounds on expensive / black-holely Transient<Slice> parameters to stop people accidentally beach balling their machines to death

* Update TransientClient.hpp

Add upper limits for `order` and `blocksize` parameters in line with what a CPU can actually cope with given the current implementation

* Update TransientSliceClient.hpp

Hard upper limits for `order` and `blocksize`
  • Loading branch information
weefuzzy authored Aug 2, 2022
1 parent 435e34c commit 2832e14
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/clients/rt/TransientClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ enum TransientParamIndex {

constexpr auto TransientParams = defineParameters(
LongParam("order", "Order", 20, Min(10), LowerLimit<kWinSize>(),
UpperLimit<kBlockSize>()),
LongParam("blockSize", "Block Size", 256, Min(100), LowerLimit<kOrder>()),
UpperLimit<kBlockSize>(), Max(200)),
LongParam("blockSize", "Block Size", 256, Min(100), LowerLimit<kOrder>(), Max(4096)),
LongParam("padSize", "Padding", 128, Min(0)),
FloatParam("skew", "Skew", 0, Min(-10), Max(10)),
FloatParam("threshFwd", "Forward Threshold", 2, Min(0)),
Expand Down
4 changes: 2 additions & 2 deletions include/clients/rt/TransientSliceClient.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ enum TransientParamIndex {

constexpr auto TransientSliceParams = defineParameters(
LongParam("order", "Order", 20, Min(10), LowerLimit<kWinSize>(),
UpperLimit<kBlockSize>()),
LongParam("blockSize", "Block Size", 256, Min(100), LowerLimit<kOrder>()),
UpperLimit<kBlockSize>(), Max(200)),
LongParam("blockSize", "Block Size", 256, Min(100), LowerLimit<kOrder>(), Max(4096)),
LongParam("padSize", "Padding", 128, Min(0)),
FloatParam("skew", "Skew", 0, Min(-10), Max(10)),
FloatParam("threshFwd", "Forward Threshold", 2, Min(0)),
Expand Down

0 comments on commit 2832e14

Please sign in to comment.