Skip to content

Commit

Permalink
hgemm: enable CPU hgemm only when MKL is provided.
Browse files Browse the repository at this point in the history
  • Loading branch information
cayrols committed Dec 14, 2023
1 parent 70d893b commit 8678c82
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gemm.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ inline void gemm(
float16 beta,
float16* C, blas_int ldc )
{
#ifdef BLAS_HAVE_MKL
BLAS_hgemm( &transA, &transB, &m, &n, &k,
(MKL_F16*)&alpha, (MKL_F16*)A, &lda,
(MKL_F16*)B, &ldb,
(MKL_F16*)&beta, (MKL_F16*)C, &ldc );
#endif
}

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 8678c82

Please sign in to comment.