From e48f3284d4bc6cc2f76704d89944ad4de6ecdb7f Mon Sep 17 00:00:00 2001 From: Hans Pabst Date: Tue, 26 Nov 2024 09:27:20 +0100 Subject: [PATCH] Fixed compilation warning about unused function (LIBXSMM not present). --- src/dbm/dbm_multiply_cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dbm/dbm_multiply_cpu.c b/src/dbm/dbm_multiply_cpu.c index e59b09cdaf..9035e2a22a 100644 --- a/src/dbm/dbm_multiply_cpu.c +++ b/src/dbm/dbm_multiply_cpu.c @@ -54,12 +54,14 @@ static inline void dbm_dgemm(const char transa, const char transb, const int m, * http://szudzik.com/ElegantPairing.pdf * \author Ole Schuett ******************************************************************************/ +#if defined(__LIBXSMM) static inline unsigned int hash(const dbm_task_t task) { const unsigned int m = task.m, n = task.n, k = task.k; const unsigned int mn = (m >= n) ? m * m + m + n : m + n * n; const unsigned int mnk = (mn >= k) ? mn * mn + mn + k : mn + k * k; return mnk; } +#endif /******************************************************************************* * \brief Internal routine for executing the tasks in given batch on the CPU.