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:
authorKenneth Heafield <github@kheafield.com>2020-09-14 21:02:49 +0300
committerKenneth Heafield <github@kheafield.com>2020-09-14 21:02:49 +0300
commitc3b26e144c7bb619b56ba86e1f7046992332b452 (patch)
tree544a613bbecd62c80f15193ea15bffbacf561a19
parent6f9373a46cb1761bda3c3f45f8102013bc440d64 (diff)
Fix namespacing for compilers without VNNI
-rw-r--r--intgemm/intgemm.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/intgemm/intgemm.h b/intgemm/intgemm.h
index 18f4d45..8e2da02 100644
--- a/intgemm/intgemm.h
+++ b/intgemm/intgemm.h
@@ -124,11 +124,15 @@ struct Unsupported_8bit {
#ifndef INTGEMM_COMPILER_SUPPORTS_AVX512VNNI
// These won't ever be called in this capacity, but it does let the code below compile.
-typedef Unsupported_8bit avx512vnni::Kernels8;
+namespace avx512vnni {
+typedef Unsupported_8bit Kernels8;
+} // namespace avx512vnni
#endif
#ifndef INTGEMM_COMPILER_SUPPORTS_AVX512BW
-typedef Unsupported_8bit avx512bw::Kernels8;
-typedef Unsupported_16bit avx512bw::Kernels16;
+namespace avx512bw {
+typedef Unsupported_8bit Kernels8;
+typedef Unsupported_16bit Kernels16;
+} // namespace avx512bw
#endif
/* Returns: