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

github.com/marian-nmt/intgemm/intgemm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'example.cc')
-rw-r--r--example.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/example.cc b/example.cc
index 5f558d0..b1ba745 100644
--- a/example.cc
+++ b/example.cc
@@ -33,10 +33,13 @@ int main() {
}
// Compute the top left corner of C as a sanity check.
+ // Since we are only checking this with debug builds, disable it by default as it causes compilation failure with recent compilers
+#ifndef NDEBUG
float top_left_reference = 0.0f;
for (Index w = 0; w < width; ++w) {
top_left_reference += A[w] * B[w * B_cols];
}
+#endif
// 16-bit multiplication.
{