metal : revert the concurrnecy change because it was wrong

This commit is contained in:
Georgi Gerganov 2023-09-14 18:00:03 +03:00
parent 336afbcb76
commit e343b8b4d8
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
4 changed files with 6 additions and 7 deletions

View file

@ -52,7 +52,7 @@ int main(int argc, char ** argv) {
ggml_metal_set_tensor(ctx_metal, input);
// warmup
ggml_metal_graph_compute(ctx_metal, &gf, false);
ggml_metal_graph_compute(ctx_metal, &gf);
const int n_iter = 16;
@ -60,7 +60,7 @@ int main(int argc, char ** argv) {
// the actual inference happens here
for (int i = 0; i < n_iter; ++i) {
ggml_metal_graph_compute(ctx_metal, &gf, false);
ggml_metal_graph_compute(ctx_metal, &gf);
}
const int64_t t1 = ggml_time_us();