Skip to content

Commit 3f0632e

Browse files
adremo: formatting fixes
1 parent 41aa318 commit 3f0632e

8 files changed

+24
-22
lines changed

ggml/src/ggml-opencl2/ggml-opencl2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3615,7 +3615,7 @@ static void ggml_cl_cpy(ggml_backend_t backend, const ggml_tensor * src0, const
36153615
GGML_ASSERT(src1->extra);
36163616

36173617
// GGML_OP_CPY happens between src0 and src1.
3618-
// GGML_OP_DUP and GGML_OP_CONT happen between src0 and dst.
3618+
// GGML_OP_DUP and GGML_OP_CONT happen between src0 and dst.
36193619
UNUSED(dst);
36203620

36213621
const int ne00 = src0 ? src0->ne[0] : 0;
Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1+
#
2+
13
import sys
24

35
def main():
4-
if len(sys.argv) != 3:
5-
print("Usage: python embed_kernel.py <input_file> <output_file>")
6-
exit(1)
6+
if len(sys.argv) != 3:
7+
print("Usage: python embed_kernel.py <input_file> <output_file>")
8+
exit(1)
79

8-
ifile = open(sys.argv[1], "r")
9-
ofile = open(sys.argv[2], "w")
10+
ifile = open(sys.argv[1], "r")
11+
ofile = open(sys.argv[2], "w")
1012

11-
ofile.write("R\"(\n\n")
12-
ofile.write(ifile.read())
13-
ofile.write("\n)\"")
13+
ofile.write("R\"(\n\n")
14+
ofile.write(ifile.read())
15+
ofile.write("\n)\"")
1416

15-
ifile.close()
16-
ofile.close()
17+
ifile.close()
18+
ofile.close()
1719

1820
if __name__ == "__main__":
19-
main()
21+
main()

ggml/src/ggml-opencl2/kernels/ggml-opencl2.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#elif defined(cl_amd_fp16)
77
#pragma OPENCL EXTENSION cl_amd_fp16 : enable
88
#else
9-
#error "Half precision floating point not supportedby OpenCL implementation on your device."
9+
#error "Half precision floating point not supportedby OpenCL implementation on your device."
1010
#endif
1111

1212
#ifdef cl_khr_subgroups

ggml/src/ggml-opencl2/kernels/ggml-opencl2_cvt.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#elif defined(cl_amd_fp16)
1212
#pragma OPENCL EXTENSION cl_amd_fp16 : enable
1313
#else
14-
#error "Half precision floating point not supportedby OpenCL implementation on your device."
14+
#error "Half precision floating point not supportedby OpenCL implementation on your device."
1515
#endif
1616

1717
#ifdef cl_khr_subgroups

ggml/src/ggml-opencl2/kernels/ggml-opencl2_gemv_noshuffle.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#pragma OPENCL EXTENSION cl_qcom_extra_vector_types : enable
99
#pragma OPENCL EXTENSION cl_qcom_reqd_sub_group_size : enable
1010

11-
// assume
11+
// assume
1212
#define QK4_0 32
1313
#define N_SIMDGROUP 4
1414

@@ -204,7 +204,7 @@ __kernel void kernel_gemv_noshuffle(
204204
int ne10, // K
205205
int ne12, // 1
206206
int ne0, // M
207-
int ne1, // N
207+
int ne1, // N
208208
int r2, // 1
209209
int r3)
210210
{

ggml/src/ggml-opencl2/kernels/ggml-opencl2_gemv_noshuffle_general.cl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#pragma OPENCL EXTENSION cl_qcom_extra_vector_types : enable
99
#pragma OPENCL EXTENSION cl_qcom_reqd_sub_group_size : enable
1010

11-
// assume
11+
// assume
1212
#define QK4_0 32
1313
#define N_SIMDGROUP 4
1414

@@ -204,7 +204,7 @@ __kernel void kernel_gemv_noshuffle(
204204
int ne10, // K
205205
int ne12, // 1
206206
int ne0, // M
207-
int ne1, // N
207+
int ne1, // N
208208
int r2, // 1
209209
int r3)
210210
{

ggml/src/ggml-opencl2/kernels/ggml-opencl2_mm.cl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#elif defined(cl_amd_fp16)
1111
#pragma OPENCL EXTENSION cl_amd_fp16 : enable
1212
#else
13-
#error "Half precision floating point not supportedby OpenCL implementation on your device."
13+
#error "Half precision floating point not supportedby OpenCL implementation on your device."
1414
#endif
1515

1616
#ifdef cl_khr_subgroups

ggml/src/ggml-opencl2/kernels/ggml-opencl2_transpose_16.cl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
// 16-bit transpose, loading/storing an 8x8 tile of elements
55

66
kernel void kernel_transpose_16(
7-
__read_only image1d_buffer_t input,
8-
__write_only image1d_buffer_t output,
9-
const uint rows,
7+
__read_only image1d_buffer_t input,
8+
__write_only image1d_buffer_t output,
9+
const uint rows,
1010
const uint cols
1111
) {
1212

0 commit comments

Comments
 (0)