From 57dcf55075e7173fd21eb81d825133aa740c7255 Mon Sep 17 00:00:00 2001 From: Frank Seide Date: Fri, 13 Sep 2019 17:22:58 -0700 Subject: (fixed an error message) --- src/QuantUtilsAvx2.cc | 7 +++++-- src/Utils.cc | 4 +++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/QuantUtilsAvx2.cc b/src/QuantUtilsAvx2.cc index 6371b6f..821999e 100755 --- a/src/QuantUtilsAvx2.cc +++ b/src/QuantUtilsAvx2.cc @@ -258,9 +258,12 @@ void RequantizeFixedPointAvx2( } } #else -// dummy implementation to avoid link errors +// dummy implementations to avoid link errors +void RequantizeAvx2(const int32_t* src, uint8_t* dst, int len, const RequantizationParams& params) { + assert(false && "RequantizeAvx2() was called unexpectedly in non-AVX2 build"); +} void RequantizeFixedPointAvx2(const int32_t* src, uint8_t* dst, int len, const RequantizationParams& params) { - assert(false && "RequantizeFixedPointAvx2() called in build without AVX2 support"); + assert(false && "RequantizeFixedPointAvx2() was called unexpectedly in non-AVX2 build"); } #endif diff --git a/src/Utils.cc b/src/Utils.cc index 99f8125..8569553 100755 --- a/src/Utils.cc +++ b/src/Utils.cc @@ -207,7 +207,9 @@ bool fbgemmHasAvx2Support() { return (cpuinfo_initialize() && cpuinfo_has_x86_avx2()); } #else -bool fbgemmHasAvx2Support() { return false; } +bool fbgemmHasAvx2Support() { + return false; +} #endif } // namespace fbgemm -- cgit v1.2.3