Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/ruy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Jacob <benoitjacob@google.com>2021-10-21 06:04:54 +0300
committerCopybara-Service <copybara-worker@google.com>2021-10-21 06:05:31 +0300
commit670e69dfb4701f9970232512843c49f3b66d00d7 (patch)
tree3674efeb81b92fe8dc56b336ad5208c04c35367f
parentc31af31ad62cc74650b04368cd9369a389d23248 (diff)
Disable the internal test-only variants of the StandardCpp path in benchmarks
PiperOrigin-RevId: 404697829
-rw-r--r--ruy/test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ruy/test.h b/ruy/test.h
index 0b05399..793aeac 100644
--- a/ruy/test.h
+++ b/ruy/test.h
@@ -1847,6 +1847,12 @@ void TestSet<LhsScalar, RhsScalar, AccumScalar, DstScalar>::MakeResultPaths() {
paths_bitfield = get_ctx(&context)->GetRuntimeEnabledPaths();
}
+ // Disable the internal test-only variants of the StandardCpp path in
+ // benchmarks
+ if (benchmark) {
+ paths_bitfield = paths_bitfield & kAllPaths;
+ }
+
// Disable the internal test-only variants of the StandardCpp path on large
// tests.
// This constant be large enough to exercise some interesting BlockMap logic,