Restrict detect_dotprod to linux.

We're debugging further trouble on iOS even with the current
__APPLE__ check.

PiperOrigin-RevId: 248865934
This commit is contained in:
Benoit Jacob 2019-05-18 07:54:21 -07:00 committed by TensorFlower Gardener
parent faf9db515c
commit 4a19069b51

View File

@ -19,7 +19,9 @@ limitations under the License.
// EXC_BAD_INSTRUCTION is actually a different signal?
// Anyway, we don't need this code on Apple devices at the moment, as none of
// them supports dot-product instructions at the moment.
#if defined __aarch64__ && !defined __APPLE__
// In fact, for the moment, we only care about Linux, so restricting to it
// limits our risk.
#if defined __aarch64__ && defined __linux__
#define RUY_IMPLEMENT_DETECT_DOTPROD
#endif