@@ -1408,11 +1408,11 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
14081408 // src1 is a row
14091409 GGML_ASSERT (ne11 == 1 );
14101410
1411- pipeline = ggml_metal_op_bin_get_pipeline (ctx, dst ->op , n_fuse, true );
1411+ pipeline = ggml_metal_op_bin_get_pipeline (node ->op , ctx , n_fuse, true );
14121412
14131413 bcast_row = true ;
14141414 } else {
1415- pipeline = ggml_metal_op_bin_get_pipeline (ctx, dst ->op , n_fuse, false );
1415+ pipeline = ggml_metal_op_bin_get_pipeline (node ->op , ctx , n_fuse, false );
14161416 }
14171417
14181418 if (n_fuse > 1 ) {
@@ -1602,7 +1602,7 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
16021602 };
16031603
16041604 // const id<MTLComputePipelineState> pipeline = ctx->pipelines[GGML_METAL_PIPELINE_TYPE_ADD].pipeline;
1605- const id <MTLComputePipelineState > pipeline = ggml_metal_op_bin_get_pipeline (ctx, GGML_OP_ADD , 1 , false );
1605+ const id <MTLComputePipelineState > pipeline = ggml_metal_op_bin_get_pipeline (GGML_OP_ADD, ctx , 1 , false );
16061606
16071607 [encoder setComputePipelineState: pipeline];
16081608 [encoder setBytes: &args length: sizeof (args) atIndex: 0 ];
@@ -3517,7 +3517,7 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
35173517 }
35183518 }
35193519
3520- const id <MTLComputePipelineState > pipeline = ggml_metal_op_rms_norm_get_pipeline (ctx, node , n_fuse);
3520+ const id <MTLComputePipelineState > pipeline = ggml_metal_op_rms_norm_get_pipeline (node, ctx , n_fuse);
35213521
35223522 int nth = 32 ; // SIMD width
35233523
@@ -4257,7 +4257,7 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
42574257 /* .logit_softcap =*/ logit_softcap,
42584258 };
42594259
4260- id <MTLComputePipelineState > pipeline = ggml_metal_op_flash_attn_ext_get_pipeline (ctx, node , has_mask, has_sinks, has_bias, has_scap, nsg);
4260+ id <MTLComputePipelineState > pipeline = ggml_metal_op_flash_attn_ext_get_pipeline (node, ctx , has_mask, has_sinks, has_bias, has_scap, nsg);
42614261
42624262 [encoder setComputePipelineState: pipeline];
42634263 [encoder setBytes: &args length: sizeof (args) atIndex: 0 ];
@@ -4372,7 +4372,7 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
43724372 /* .logit_softcap =*/ logit_softcap,
43734373 };
43744374
4375- id <MTLComputePipelineState > pipeline = ggml_metal_op_flash_attn_ext_vec_get_pipeline (ctx, node , has_mask, has_sinks, has_bias, has_scap, nsg, nwg);
4375+ id <MTLComputePipelineState > pipeline = ggml_metal_op_flash_attn_ext_vec_get_pipeline (node, ctx , has_mask, has_sinks, has_bias, has_scap, nsg, nwg);
43764376
43774377 GGML_ASSERT (nsg*32 <= (int ) pipeline.maxTotalThreadsPerThreadgroup );
43784378
@@ -4426,7 +4426,7 @@ static int ggml_metal_encode_node(struct ggml_metal_encode_context * ctx_enc, in
44264426 nrows,
44274427 };
44284428
4429- id <MTLComputePipelineState > pipeline0 = ggml_metal_op_flash_attn_ext_vec_reduce_get_pipeline (ctx, node , ne20, nwg);
4429+ id <MTLComputePipelineState > pipeline0 = ggml_metal_op_flash_attn_ext_vec_reduce_get_pipeline (node, ctx , ne20, nwg);
44304430
44314431 [encoder setComputePipelineState: pipeline0];
44324432 [encoder setBytes: &args0 length: sizeof (args0) atIndex: 0 ];
0 commit comments