mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2025-08-04 08:15:55 -04:00
metal : wrap each operation in debug group (ggml/690)
This commit is contained in:
committed by
Georgi Gerganov
parent
e739de7909
commit
5362e43962
@@ -1067,6 +1067,8 @@ bool ggml_metal_graph_compute(
|
|||||||
GGML_ASSERT(!"unsupported op");
|
GGML_ASSERT(!"unsupported op");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[encoder pushDebugGroup:[NSString stringWithCString:ggml_op_desc(dst)]];
|
||||||
|
|
||||||
const int64_t ne00 = src0 ? src0->ne[0] : 0;
|
const int64_t ne00 = src0 ? src0->ne[0] : 0;
|
||||||
const int64_t ne01 = src0 ? src0->ne[1] : 0;
|
const int64_t ne01 = src0 ? src0->ne[1] : 0;
|
||||||
const int64_t ne02 = src0 ? src0->ne[2] : 0;
|
const int64_t ne02 = src0 ? src0->ne[2] : 0;
|
||||||
@@ -2423,6 +2425,8 @@ bool ggml_metal_graph_compute(
|
|||||||
GGML_ASSERT(false);
|
GGML_ASSERT(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[encoder popDebugGroup];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (encoder != nil) {
|
if (encoder != nil) {
|
||||||
|
Reference in New Issue
Block a user