From ec76369176b5ebb08181654c039e5c5d012f24aa Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Sat, 18 May 2019 08:12:03 -0700 Subject: [PATCH] Don't compile the dotprod path outside of Linux, we don't know non-Linux devices with dotprod and we don't know yet dotprod-runtime-detection code that runs outside of Linux. PiperOrigin-RevId: 248866842 --- tensorflow/lite/experimental/ruy/path.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tensorflow/lite/experimental/ruy/path.h b/tensorflow/lite/experimental/ruy/path.h index fd0c4a44cb2..2766d58a209 100644 --- a/tensorflow/lite/experimental/ruy/path.h +++ b/tensorflow/lite/experimental/ruy/path.h @@ -98,9 +98,14 @@ inline Path GetMostSignificantPath(Path path_mask) { // ruy::kAllPaths represents all Path's that make sense to on a given // base architecture. #ifdef __aarch64__ +#ifdef __linux__ constexpr Path kAllPaths = Path::kReference | Path::kStandardCpp | Path::kNeon | Path::kNeonDotprod; #else +// We don't know how to do runtime dotprod detection outside of linux for now. +constexpr Path kAllPaths = Path::kReference | Path::kStandardCpp | Path::kNeon; +#endif +#else constexpr Path kAllPaths = Path::kReference | Path::kStandardCpp; #endif