Skip to content

Commit 372fda3

Browse files
author
alexju
committed
metal : fix trailing whitespace
1 parent 34100e6 commit 372fda3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

ggml/src/ggml-metal/ggml-metal-impl.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ typedef struct {
355355
int64_t ne01;
356356
int64_t ne02;
357357
float scale;
358-
float max_bias;
358+
float max_bias;
359359
float m0;
360360
float m1;
361361
uint32_t n_head_log2;
@@ -414,7 +414,7 @@ typedef struct {
414414
typedef struct {
415415
int64_t ne00;
416416
uint64_t nb01;
417-
uint64_t nb02;
417+
uint64_t nb02;
418418
int64_t ne10;
419419
uint64_t nb10;
420420
uint64_t nb11;
@@ -510,7 +510,7 @@ typedef struct {
510510
int32_t k0;
511511
int32_t k1;
512512
int32_t s0;
513-
int32_t s1;
513+
int32_t s1;
514514
int32_t p0;
515515
int32_t p1;
516516
int64_t IH;

ggml/src/ggml-metal/ggml-metal.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2187,7 +2187,7 @@ static void ggml_metal_encode_node(
21872187
/*.nb51 =*/ nb51,
21882188
/*.nb52 =*/ nb52,
21892189
};
2190-
2190+
21912191
[encoder setComputePipelineState:pipeline];
21922192
[encoder setBuffer:id_src0 offset:offs_src0 atIndex:0];
21932193
[encoder setBuffer:id_src1 offset:offs_src1 atIndex:1];
@@ -3431,7 +3431,7 @@ static void ggml_metal_encode_node(
34313431
/*.sf0 =*/ sf0,
34323432
/*.sf1 =*/ sf1,
34333433
/*.sf2 =*/ sf2,
3434-
/*.sf3 =*/ sf3
3434+
/*.sf3 =*/ sf3
34353435
};
34363436

34373437
[encoder setComputePipelineState:pipeline];
@@ -3467,7 +3467,7 @@ static void ggml_metal_encode_node(
34673467
/*.nb2 =*/ nb2,
34683468
/*.nb3 =*/ nb3
34693469
};
3470-
3470+
34713471
[encoder setComputePipelineState:pipeline];
34723472
[encoder setBuffer:id_src0 offset:offs_src0 atIndex:0];
34733473
[encoder setBuffer:id_dst offset:offs_dst atIndex:1];
@@ -3527,7 +3527,7 @@ static void ggml_metal_encode_node(
35273527
memcpy(&step, ((const int32_t *) dst->op_params) + 2, sizeof(float));
35283528

35293529
id<MTLComputePipelineState> pipeline = ctx->kernels[GGML_METAL_KERNEL_TYPE_ARANGE_F32].pipeline;
3530-
3530+
35313531
ggml_metal_kargs_arange args = {
35323532
/*.ne0 =*/ ne0,
35333533
/*.start =*/ start,
@@ -4199,7 +4199,7 @@ static void ggml_metal_encode_node(
41994199
const int64_t parallel_elements = N * OC * OH * OW;
42004200
const int64_t n_threads = MIN((int64_t)[pipeline maxTotalThreadsPerThreadgroup], parallel_elements);
42014201
const int64_t n_tg = (parallel_elements + n_threads - 1) / n_threads;
4202-
4202+
42034203
ggml_metal_kargs_pool_2d args_pool_2d = {
42044204
/* .k0 = */ k0,
42054205
/* .k1 = */ k1,

0 commit comments

Comments
 (0)