diff options
author | Frank Seide <fseide@microsoft.com> | 2019-09-14 03:22:58 +0300 |
---|---|---|
committer | Frank Seide <fseide@microsoft.com> | 2019-09-14 03:22:58 +0300 |
commit | 57dcf55075e7173fd21eb81d825133aa740c7255 (patch) | |
tree | 11d3ce4008ea690d5962b11764f6bd5b35963c24 | |
parent | d53e6d709a598aa6e5ec583968f938a79788fdfb (diff) |
(fixed an error message)
-rwxr-xr-x | src/QuantUtilsAvx2.cc | 7 | ||||
-rwxr-xr-x | 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 |