@@ -104,16 +104,18 @@ int main(int argc, char ** argv) {
104104        const  int64_t  t_end = ggml_time_us ();
105105
106106        //  actual trace
107-         if  (n_thread == 4 ) {
108-             ggml_backend_metal_capture_next_compute (backend);
109-             ggml_backend_graph_compute (backend, gf);
110-             ggml_backend_metal_capture_next_compute (backend);
111-             ggml_backend_graph_compute (backend, gf);
112-             ggml_backend_metal_capture_next_compute (backend);
113-             ggml_backend_graph_compute (backend, gf);
114- 
115-             printf (" %s: trace dumped\n " 
116-         }
107+         // if (n_thread == 4) {
108+         //     ggml_backend_metal_capture_next_compute(backend);
109+         //     ggml_backend_graph_compute(backend, gf);
110+         //     //std::this_thread::sleep_for(std::chrono::milliseconds(1000)); // NOTE: these intervals do not appear in the XCode trace!
111+         //     ggml_backend_metal_capture_next_compute(backend);
112+         //     ggml_backend_graph_compute(backend, gf);
113+         //     //std::this_thread::sleep_for(std::chrono::milliseconds(1000)); // NOTE: these intervals do not appear in the XCode trace!
114+         //     ggml_backend_metal_capture_next_compute(backend);
115+         //     ggml_backend_graph_compute(backend, gf);
116+ 
117+         //     printf("%s: trace dumped\n", __func__);
118+         // }
117119
118120        printf (" %s: n_thread = %d, time = %f ms\n " 1000.0  / n_iter);
119121    }
0 commit comments