-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Reduce SeekUnroll iter count #8861
Reduce SeekUnroll iter count #8861
Conversation
@JosephTremoulet PTAL |
Fixes #8838 |
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.
LGTM modulo a couple nits/questions, thanks.
@@ -14,7 +14,7 @@ | |||
[assembly: OptimizeForBenchmarks] | |||
[assembly: MeasureInstructionsRetired] | |||
|
|||
public static class SeekUnroll | |||
public class SeekUnroll |
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.
Nit: This bit seems unnecessary since you've made the field static
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.
Done.
@@ -143,6 +143,11 @@ public static bool Test(object boxedIndex) | |||
public static int Main() | |||
{ | |||
int failures = 0; | |||
if (!Vector.IsHardwareAccelerated) | |||
{ |
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.
- Might want to add a comment explaining this.
- Have you verified that this fixes the problem when run through the test harness? It just now occurred to me that maybe
Main
doesn't execute when xunit-perf runs the test? (also, I'm not sure if our CI is running this through xunit-perf or not... presumably if we do want to track the performance of this test on a non-accelerated platform we'd want some value between 1 and 100000000...)
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 added a comment and upped the value to 100000. We can up it again later if we need/want to. I've tested this inside runtest.cmd, and it runs successfully.
027d389
to
ff644f7
Compare
On non-hardware accelerated platforms, reduce the inner iteration count in SeekUnroll. This test was timing out in x86 release builds because the iteration count was too high.
ff644f7
to
2c866c5
Compare
Reduce SeekUnroll iter count Commit migrated from dotnet/coreclr@7dd3478
On non-hardware accelerated platforms, reduce the inner iteration count in
SeekUnroll. This test was timing out in x86 release builds because the
iteration count was too high.