From 2b046829b218b38e37ab617c3dd134e9033a9a85 Mon Sep 17 00:00:00 2001 From: cyy Date: Thu, 5 Oct 2023 01:11:32 -0700 Subject: [PATCH] Fix inconsistent dll linkage warning (#2059) Summary: Pull Request resolved: https://github.com/pytorch/FBGEMM/pull/2059 Reviewed By: sryap Differential Revision: D49938275 Pulled By: q10 fbshipit-source-id: 3110c89af9d80e64f2a4715eed0d3e2f93f0e3c8 --- include/fbgemm/FbgemmFPCommon.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fbgemm/FbgemmFPCommon.h b/include/fbgemm/FbgemmFPCommon.h index 95bd5b9fe..238514a34 100644 --- a/include/fbgemm/FbgemmFPCommon.h +++ b/include/fbgemm/FbgemmFPCommon.h @@ -73,6 +73,7 @@ FBGEMM_API void cblas_gemm_compute( int thread_id = 0, int num_threads = 1); +#if defined(FBGEMM_EXPORTS) // autotuned kernel splits for various cases m = 1:mb_max template void cblas_gemm_compute( @@ -252,6 +253,7 @@ void cblas_gemm_compute( } } } +#endif #undef FBGEMM_USE_REF_KERNEL } // namespace fbgemm