@@ -2490,6 +2490,7 @@ namespace dpct
2490
2490
b, ldb, beta, c, ldc, batch_size);
2491
2491
break;
2492
2492
}
2493
+ #endif
2493
2494
case detail::get_type_combination_id(
2494
2495
library_data_t::real_int8, library_data_t::real_int8,
2495
2496
library_data_t::real_int32, library_data_t::real_int32):
@@ -2522,7 +2523,6 @@ namespace dpct
2522
2523
batch_size);
2523
2524
break;
2524
2525
}
2525
- #endif
2526
2526
case detail::get_type_combination_id(
2527
2527
library_data_t::real_half, library_data_t::real_half,
2528
2528
library_data_t::real_half, library_data_t::real_float):
@@ -2659,6 +2659,7 @@ namespace dpct
2659
2659
stride_c, batch_size);
2660
2660
break;
2661
2661
}
2662
+ #endif
2662
2663
case detail::get_type_combination_id(
2663
2664
library_data_t::real_int8, library_data_t::real_int8,
2664
2665
library_data_t::real_int32, library_data_t::real_int32):
@@ -2687,7 +2688,6 @@ namespace dpct
2687
2688
beta, c, ldc, stride_c, batch_size);
2688
2689
break;
2689
2690
}
2690
- #endif
2691
2691
case detail::get_type_combination_id(
2692
2692
library_data_t::real_half, library_data_t::real_half,
2693
2693
library_data_t::real_half, library_data_t::real_float):
@@ -15026,9 +15026,6 @@ static void ggml_sycl_mul_mat_batched_sycl(const ggml_tensor *src0,
15026
15026
SYCL_CHECK(ggml_sycl_set_device(g_main_device));
15027
15027
dpct::queue_ptr main_stream = g_syclStreams[g_main_device][0];
15028
15028
15029
- bool no_mixed_dtypes = main_stream->get_backend() == sycl::backend::ext_oneapi_cuda ||
15030
- main_stream->get_backend() == sycl::backend::ext_oneapi_hip;
15031
-
15032
15029
SYCL_CHECK(
15033
15030
CHECK_TRY_ERROR(g_sycl_handles[g_main_device] = main_stream));
15034
15031
@@ -15059,10 +15056,6 @@ static void ggml_sycl_mul_mat_batched_sycl(const ggml_tensor *src0,
15059
15056
15060
15057
dpct::library_data_t cu_compute_type = dpct::library_data_t::real_float;
15061
15058
dpct::library_data_t cu_data_type = dpct::library_data_t::real_float;
15062
- if (no_mixed_dtypes) {
15063
- cu_compute_type = dpct::library_data_t::real_half;
15064
- cu_data_type = dpct::library_data_t::real_half;
15065
- }
15066
15059
15067
15060
// dst strides
15068
15061
size_t nbd2 = dst->nb[2];
@@ -15076,21 +15069,8 @@ static void ggml_sycl_mul_mat_batched_sycl(const ggml_tensor *src0,
15076
15069
15077
15070
const void * alpha = &alpha_f32;
15078
15071
const void * beta = &beta_f32;
15079
- if (no_mixed_dtypes) {
15080
- alpha = &alpha_f16;
15081
- beta = &beta_f16;
15082
- }
15083
-
15084
- // TODO: Renable (dst->op_params[0] =! GGML_PREC_DEFAULT) pathway
15085
- // when oneMKL open source supports half, half, float, float: datatypes
15086
15072
15087
15073
dst_t = (char *) dst_ddf;
15088
- if (no_mixed_dtypes) {
15089
- dst_t = (char *) dst_f16.alloc(ne_dst);
15090
-
15091
- nbd2 /= sizeof(float) / sizeof(sycl::half);
15092
- nbd3 /= sizeof(float) / sizeof(sycl::half);
15093
- }
15094
15074
15095
15075
GGML_ASSERT(ne12 % ne02 == 0);
15096
15076
GGML_ASSERT(ne13 % ne03 == 0);
@@ -15152,11 +15132,6 @@ static void ggml_sycl_mul_mat_batched_sycl(const ggml_tensor *src0,
15152
15132
(void **)(ptrs_dst.get() + 0 * ne23), cu_data_type, ne01, ne23,
15153
15133
cu_compute_type)));
15154
15134
}
15155
-
15156
- if (no_mixed_dtypes) {
15157
- const to_fp32_sycl_t to_fp32_sycl = ggml_get_to_fp32_sycl(GGML_TYPE_F16);
15158
- to_fp32_sycl(dst_f16.get(), dst_ddf, ne_dst, main_stream);
15159
- }
15160
15135
}
15161
15136
catch (sycl::exception const &exc) {
15162
15137
std::cerr << exc.what() << "Exception caught at file:" << __FILE__
0 commit comments