aboutsummaryrefslogtreecommitdiff
path: root/examples/metal
diff options
context:
space:
mode:
Diffstat (limited to 'examples/metal')
-rw-r--r--examples/metal/metal.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/metal/metal.cpp b/examples/metal/metal.cpp
index cdfe4bf..7438def 100644
--- a/examples/metal/metal.cpp
+++ b/examples/metal/metal.cpp
@@ -35,10 +35,9 @@ int main(int argc, char ** argv) {
struct ggml_context * ctx_eval = NULL;
struct ggml_cgraph gf = ggml_graph_import(fname_cgraph, &ctx_data, &ctx_eval);
- gf.n_threads = 1;
// this allocates all Metal resources and memory buffers
- auto * ctx_metal = ggml_metal_init();
+ auto * ctx_metal = ggml_metal_init(1);
const size_t max_size_data = ggml_get_max_tensor_size(ctx_data);
const size_t max_size_eval = ggml_get_max_tensor_size(ctx_eval);