Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jiang, Zhiwei <[email protected]>
  • Loading branch information
zhiweij1 committed Jul 3, 2024
1 parent 8e87927 commit 1d91ff8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions clang/runtime/dpct-rt/include/dpct/blas_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1853,25 +1853,25 @@ inline void gemm_batch(descriptor_ptr desc_ptr, oneapi::mkl::transpose a_trans,
float beta_float =
dpct::get_value(reinterpret_cast<const std::int32_t *>(beta), q);
dpct::detail::gemm_batch_impl<std::int8_t, std::int8_t, std::int32_t,
float>(q, a_trans, b_trans, m, n, k,
&alpha_float, a, lda, b, ldb,
&beta_float, c, ldc, batch_size, cm);
float>(
q, a_trans, b_trans, m, n, k, &alpha_float, a, lda, b, ldb, &beta_float,
c, ldc, batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
library_data_t::real_int8, library_data_t::real_int8,
library_data_t::real_float, library_data_t::real_float): {
dpct::detail::gemm_batch_impl<std::int8_t, std::int8_t, float, float>(
q, a_trans, b_trans, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc,
batch_size, cm);
batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
library_data_t::real_half, library_data_t::real_half,
library_data_t::real_float, library_data_t::real_float): {
dpct::detail::gemm_batch_impl<sycl::half, sycl::half, float, float>(
q, a_trans, b_trans, m, n, k, alpha, a, lda, b, ldb, beta, c, ldc,
batch_size, cm);
batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
Expand Down Expand Up @@ -2033,23 +2033,24 @@ inline void gemm_batch(descriptor_ptr desc_ptr, oneapi::mkl::transpose a_trans,
dpct::detail::gemm_batch_impl<std::int8_t, std::int8_t, std::int32_t,
float>(
q, a_trans, b_trans, m, n, k, &alpha_float, a, lda, stride_a, b, ldb,
stride_b, &beta_float, c, ldc, stride_c, batch_size, cm);
stride_b, &beta_float, c, ldc, stride_c,
batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
library_data_t::real_int8, library_data_t::real_int8,
library_data_t::real_float, library_data_t::real_float): {
dpct::detail::gemm_batch_impl<std::int8_t, std::int8_t, float, float>(
q, a_trans, b_trans, m, n, k, alpha, a, lda, stride_a, b, ldb, stride_b,
beta, c, ldc, stride_c, batch_size, cm);
beta, c, ldc, stride_c, batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
library_data_t::real_half, library_data_t::real_half,
library_data_t::real_float, library_data_t::real_float): {
dpct::detail::gemm_batch_impl<sycl::half, sycl::half, float, float>(
q, a_trans, b_trans, m, n, k, alpha, a, lda, stride_a, b, ldb, stride_b,
beta, c, ldc, stride_c, batch_size, cm);
beta, c, ldc, stride_c, batch_size DPCT_COMPUTE_MODE_ARG);
break;
}
case dpct::detail::get_type_combination_id(
Expand Down

0 comments on commit 1d91ff8

Please sign in to comment.