Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Seide <fseide@microsoft.com>2019-09-14 03:22:58 +0300
committerFrank Seide <fseide@microsoft.com>2019-09-14 03:22:58 +0300
commit57dcf55075e7173fd21eb81d825133aa740c7255 (patch)
tree11d3ce4008ea690d5962b11764f6bd5b35963c24
parentd53e6d709a598aa6e5ec583968f938a79788fdfb (diff)
(fixed an error message)
-rwxr-xr-xsrc/QuantUtilsAvx2.cc7
-rwxr-xr-xsrc/Utils.cc4
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