@@ -224,7 +224,7 @@ template <typename fp>
224224static void gemm (CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m,
225225 const int *n, const int *k, const fp *alpha, const fp *a, const int *lda,
226226 const fp *b, const int *ldb, const fp *beta, fp *c, const int *ldc);
227-
227+ # ifdef NOT_HIPSYCL
228228template <>
229229void gemm (CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m,
230230 const int *n, const int *k, const half *alpha, const half *a, const int *lda,
@@ -255,7 +255,7 @@ void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, c
255255 oneapi::mkl::aligned_free (bf);
256256 oneapi::mkl::aligned_free (cf);
257257}
258-
258+ # endif
259259template <>
260260void gemm (CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m,
261261 const int *n, const int *k, const float *alpha, const float *a, const int *lda,
@@ -291,7 +291,7 @@ template <typename fpa, typename fpc>
291291static void gemm (CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m,
292292 const int *n, const int *k, const fpc *alpha, const fpa *a, const int *lda,
293293 const fpa *b, const int *ldb, const fpc *beta, fpc *c, const int *ldc);
294-
294+ # ifdef NOT_HIPSYCL
295295template <>
296296void gemm (CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, const int *m,
297297 const int *n, const int *k, const float *alpha, const half *a, const int *lda,
@@ -314,7 +314,7 @@ void gemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE transa, CBLAS_TRANSPOSE transb, c
314314 oneapi::mkl::aligned_free (af);
315315 oneapi::mkl::aligned_free (bf);
316316}
317-
317+ # endif
318318template <typename fp>
319319static void symm (CBLAS_LAYOUT layout, CBLAS_SIDE left_right, CBLAS_UPLO uplo, const int *m,
320320 const int *n, const fp *alpha, const fp *a, const int *lda, const fp *b,
0 commit comments