Skip to content

Commit 0a338ed

Browse files
authored
sycl : fixed compilation warnings (#13582)
1 parent bc098c3 commit 0a338ed

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

ggml/src/ggml-sycl/element_wise.cpp

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,6 @@ inline void ggml_sycl_op_sgn(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
655655
}
656656
default:
657657
GGML_ABORT("GGML tensor type not supported!\n");
658-
break;
659658
}
660659
}
661660

@@ -688,7 +687,6 @@ inline void ggml_sycl_op_abs(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
688687
}
689688
default:
690689
GGML_ABORT("GGML tensor type not supported!\n");
691-
break;
692690
}
693691
}
694692

@@ -722,7 +720,6 @@ inline void ggml_sycl_op_elu(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
722720
}
723721
default:
724722
GGML_ABORT("GGML tensor type not supported!\n");
725-
break;
726723
}
727724
}
728725

@@ -754,7 +751,6 @@ inline void ggml_sycl_op_silu(ggml_backend_sycl_context & ctx, ggml_tensor * dst
754751
}
755752
default:
756753
GGML_ABORT("GGML tensor type not supported!\n");
757-
break;
758754
}
759755
}
760756

@@ -786,7 +782,6 @@ inline void ggml_sycl_op_gelu(ggml_backend_sycl_context & ctx, ggml_tensor * dst
786782
}
787783
default:
788784
GGML_ABORT("GGML tensor type not supported!\n");
789-
break;
790785
}
791786
}
792787

@@ -818,7 +813,6 @@ inline void ggml_sycl_op_gelu_quick(ggml_backend_sycl_context & ctx, ggml_tensor
818813
}
819814
default:
820815
GGML_ABORT("GGML tensor type not supported!\n");
821-
break;
822816
}
823817
}
824818

@@ -850,7 +844,6 @@ inline void ggml_sycl_op_tanh(ggml_backend_sycl_context & ctx, ggml_tensor * dst
850844
}
851845
default:
852846
GGML_ABORT("GGML tensor type not supported!\n");
853-
break;
854847
}
855848
}
856849

@@ -883,7 +876,6 @@ inline void ggml_sycl_op_relu(ggml_backend_sycl_context & ctx, ggml_tensor * dst
883876
}
884877
default:
885878
GGML_ABORT("GGML tensor type not supported!\n");
886-
break;
887879
}
888880
}
889881

@@ -917,7 +909,6 @@ inline void ggml_sycl_op_hardsigmoid(ggml_backend_sycl_context & ctx, ggml_tenso
917909
}
918910
default:
919911
GGML_ABORT("GGML tensor type not supported!\n");
920-
break;
921912
}
922913
}
923914

@@ -949,7 +940,6 @@ inline void ggml_sycl_op_hardswish(ggml_backend_sycl_context & ctx, ggml_tensor
949940
}
950941
default:
951942
GGML_ABORT("GGML tensor type not supported!\n");
952-
break;
953943
}
954944
}
955945

@@ -981,7 +971,6 @@ inline void ggml_sycl_op_exp(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
981971
}
982972
default:
983973
GGML_ABORT("GGML tensor type not supported!\n");
984-
break;
985974
}
986975
}
987976

@@ -1013,7 +1002,6 @@ inline void ggml_sycl_op_log(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
10131002
}
10141003
default:
10151004
GGML_ABORT("GGML tensor type not supported!\n");
1016-
break;
10171005
}
10181006
}
10191007

@@ -1045,7 +1033,6 @@ inline void ggml_sycl_op_sigmoid(ggml_backend_sycl_context & ctx, ggml_tensor *
10451033
}
10461034
default:
10471035
GGML_ABORT("GGML tensor type not supported!\n");
1048-
break;
10491036
}
10501037
}
10511038

@@ -1078,7 +1065,6 @@ inline void ggml_sycl_op_sqrt(ggml_backend_sycl_context & ctx, ggml_tensor * dst
10781065
}
10791066
default:
10801067
GGML_ABORT("GGML tensor type not supported!\n");
1081-
break;
10821068
}
10831069
}
10841070

@@ -1110,7 +1096,6 @@ inline void ggml_sycl_op_sin(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
11101096
}
11111097
default:
11121098
GGML_ABORT("GGML tensor type not supported!\n");
1113-
break;
11141099
}
11151100
}
11161101

@@ -1142,7 +1127,6 @@ inline void ggml_sycl_op_cos(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
11421127
}
11431128
default:
11441129
GGML_ABORT("GGML tensor type not supported!\n");
1145-
break;
11461130
}
11471131
}
11481132

@@ -1174,7 +1158,6 @@ inline void ggml_sycl_op_step(ggml_backend_sycl_context & ctx, ggml_tensor * dst
11741158
}
11751159
default:
11761160
GGML_ABORT("GGML tensor type not supported!\n");
1177-
break;
11781161
}
11791162
}
11801163

@@ -1206,7 +1189,6 @@ inline void ggml_sycl_op_neg(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
12061189
}
12071190
default:
12081191
GGML_ABORT("GGML tensor type not supported!\n");
1209-
break;
12101192
}
12111193
}
12121194

@@ -1241,7 +1223,6 @@ inline void ggml_sycl_op_leaky_relu(ggml_backend_sycl_context & ctx, ggml_tensor
12411223
}
12421224
default:
12431225
GGML_ABORT("GGML tensor type not supported!\n");
1244-
break;
12451226
}
12461227
}
12471228

@@ -1273,7 +1254,6 @@ inline void ggml_sycl_op_sqr(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
12731254
}
12741255
default:
12751256
GGML_ABORT("GGML tensor type not supported!\n");
1276-
break;
12771257
}
12781258
}
12791259

@@ -1315,7 +1295,6 @@ inline void ggml_sycl_op_upscale(ggml_backend_sycl_context & ctx, ggml_tensor *
13151295
}
13161296
default:
13171297
GGML_ABORT("GGML tensor type not supported!\n");
1318-
break;
13191298
}
13201299
}
13211300

@@ -1350,7 +1329,6 @@ inline void ggml_sycl_op_pad(ggml_backend_sycl_context & ctx, ggml_tensor * dst)
13501329
}
13511330
default:
13521331
GGML_ABORT("GGML tensor type not supported!\n");
1353-
break;
13541332
}
13551333
}
13561334

@@ -1388,7 +1366,6 @@ inline void ggml_sycl_op_clamp(ggml_backend_sycl_context & ctx, ggml_tensor * ds
13881366
}
13891367
default:
13901368
GGML_ABORT("GGML tensor type not supported!\n");
1391-
break;
13921369
}
13931370
}
13941371

0 commit comments

Comments
 (0)