Skip to content

Commit

Permalink
Fixed compilation warning about unused function (LIBXSMM not present).
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Nov 26, 2024
1 parent cb5b1af commit e48f328
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dbm/dbm_multiply_cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e48f328

Please sign in to comment.