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