metal : create backend, mostly reuse CPU backend interface

This commit is contained in:
Georgi Gerganov 2023-07-19 16:47:43 +03:00
parent ed960fa1ab
commit 70c55c17c7
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
3 changed files with 61 additions and 29 deletions

View file

@ -35,7 +35,7 @@ extern "C" {
#endif
// GG: maybe return ptr and avoid the "ggml.h" include
struct ggml_backend ggml_backend_metal_init();
struct ggml_backend ggml_backend_metal_init(struct ggml_backend * backend_cpu);
//struct ggml_metal_context;
//