From 8813b79c5be90c41c9dbb7d4d4244500f13db4e0 Mon Sep 17 00:00:00 2001 From: Ashwini Khade Date: Tue, 27 Aug 2019 15:52:03 -0700 Subject: [PATCH] make gemmlowp default for arm (#1701) * make gemmlowp default for arm * force use_gemmlowp in header for default case * remove unnecessary white space --- onnxruntime/core/util/qmath.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/onnxruntime/core/util/qmath.h b/onnxruntime/core/util/qmath.h index 3cec9047f3..f6ce7bcaa2 100644 --- a/onnxruntime/core/util/qmath.h +++ b/onnxruntime/core/util/qmath.h @@ -1,5 +1,14 @@ #pragma once -//#define USE_GEMMLOWP + +// default to gemmlowp when building for arm devices +#ifndef USE_GEMMLOWP +#if defined(_M_ARM64) || defined(__aarch64__) +#define USE_GEMMLOWP +#endif +#if defined(_M_ARM) || defined(__arm__) +#define USE_GEMMLOWP +#endif +#endif #ifdef USE_GEMMLOWP #include "core/util/gemmlowp_common.h"