Skip to content

Commit 7b066d4

Browse files
committed
Remove changes not related to softmax
1 parent 1e2fe41 commit 7b066d4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

ggml/src/ggml-sycl/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ void ggml_sycl_op_flatten(ggml_backend_sycl_context & ctx, const ggml_tensor *sr
7979
float * src0_ddf = (float *) src0->data;
8080
float * src1_ddf = use_src1 ? (float *) src1->data : nullptr;
8181
float * dst_ddf = (float *) dst->data;
82-
/* These are never used */
82+
8383
ggml_sycl_pool_alloc<float> src0_f(ctx.pool());
8484
ggml_sycl_pool_alloc<float> src1_f(ctx.pool());
8585
ggml_sycl_pool_alloc<float> dst_f(ctx.pool());

ggml/src/ggml-sycl/dmmv.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
#include "dmmv.hpp"
33
#include "dequantize.hpp"
44
#include "presets.hpp"
5-
#include "ggml-impl.h"
65

76

87
static void convert_f16(const void * vx, const int64_t ib, const int iqs, dfloat2 & v){
@@ -974,7 +973,6 @@ void ggml_sycl_op_dequantize_mul_mat_vec(
974973
}
975974
#else
976975
const dfloat * src1_dfloat = (const dfloat *) src1_ddf_i; // dfloat == float, no conversion
977-
GGML_UNUSED(ctx);
978976
#endif // GGML_SYCL_F16
979977

980978
switch (src0->type) {
@@ -1012,7 +1010,7 @@ void ggml_sycl_op_dequantize_mul_mat_vec(
10121010
convert_mul_mat_vec_f16_sycl(src0_dd_i, src1_dfloat, dst_dd_i, ne00, row_diff, stream);
10131011
break;
10141012
default:
1015-
GGML_LOG_ERROR("ggml_sycl_op_dequantize_mul_mat_vec unsupported GGML_TYPE %d\n", src0->type);
1013+
printf("ggml_sycl_op_dequantize_mul_mat_vec unsupported GGML_TYPE %d\n", src0->type);
10161014
GGML_ABORT("fatal error");
10171015
break;
10181016
}

ggml/src/ggml-sycl/wkv6.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ static void rwkv_wkv_f32_kernel(
9797

9898
void ggml_sycl_op_rwkv_wkv6(ggml_backend_sycl_context& ctx, ggml_tensor* dst) {
9999

100+
const ggml_tensor *src0 = dst->src[0];
101+
const ggml_tensor *src1 = dst->src[1];
102+
100103
const float* k_d = (const float*)dst->src[0]->data;
101104
const float* v_d = (const float*)dst->src[1]->data;
102105
const float* r_d = (const float*)dst->src[2]->data;
@@ -134,4 +137,7 @@ void ggml_sycl_op_rwkv_wkv6(ggml_backend_sycl_context& ctx, ggml_tensor* dst) {
134137
);
135138
});
136139
});
140+
141+
GGML_UNUSED(src0);
142+
GGML_UNUSED(src1);
137143
}

0 commit comments

Comments
 (0)