From 768aa689dda91f49024e647b5aee23e6b5d08556 Mon Sep 17 00:00:00 2001 From: Kenneth Heafield Date: Wed, 8 Dec 2021 21:53:30 +0000 Subject: Reduce header noise (#94) --- intgemm/intgemm.cc | 11 +++++++++++ intgemm/intgemm.h | 12 ------------ intgemm/types.h | 2 ++ 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/intgemm/intgemm.cc b/intgemm/intgemm.cc index dfb54f3..e5fe1b0 100644 --- a/intgemm/intgemm.cc +++ b/intgemm/intgemm.cc @@ -1,3 +1,14 @@ +#if defined(WASM) +// No header for CPUID since it's hard-coded. +#elif defined(__INTEL_COMPILER) +#include +#elif defined(_MSC_VER) +#include +#else +// Assume GCC and clang style. +#include +#endif + #include "intgemm.h" #include "stats.h" diff --git a/intgemm/intgemm.h b/intgemm/intgemm.h index bcd3be6..2528fdb 100644 --- a/intgemm/intgemm.h +++ b/intgemm/intgemm.h @@ -41,7 +41,6 @@ #include -#include "intgemm/intgemm_config.h" #include "types.h" #include "sse2_gemm.h" #include "ssse3_gemm.h" @@ -49,17 +48,6 @@ #include "avx512_gemm.h" #include "avx512vnni_gemm.h" -#if defined(WASM) -// No header for CPUID since it's hard-coded. -#elif defined(__INTEL_COMPILER) -#include -#elif defined(_MSC_VER) -#include -#else -// Assume GCC and clang style. -#include -#endif - /* Dispatch to functions based on runtime CPUID. This adds one call-by-variable to each call. */ namespace intgemm { diff --git a/intgemm/types.h b/intgemm/types.h index 81b38af..a4b35b4 100644 --- a/intgemm/types.h +++ b/intgemm/types.h @@ -1,4 +1,6 @@ #pragma once +#include "intgemm/intgemm_config.h" + #include #ifdef INTGEMM_COMPILER_SUPPORTS_AVX2 #include -- cgit v1.2.3