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
This commit is contained in:
Benoit Jacob 2019-05-18 08:12:03 -07:00 committed by TensorFlower Gardener
parent 4a19069b51
commit ec76369176

View File

@ -98,9 +98,14 @@ inline Path GetMostSignificantPath(Path path_mask) {
// ruy::kAllPaths represents all Path's that make sense to on a given // ruy::kAllPaths represents all Path's that make sense to on a given
// base architecture. // base architecture.
#ifdef __aarch64__ #ifdef __aarch64__
#ifdef __linux__
constexpr Path kAllPaths = constexpr Path kAllPaths =
Path::kReference | Path::kStandardCpp | Path::kNeon | Path::kNeonDotprod; Path::kReference | Path::kStandardCpp | Path::kNeon | Path::kNeonDotprod;
#else #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; constexpr Path kAllPaths = Path::kReference | Path::kStandardCpp;
#endif #endif