Get mmap() working with WIN32 MSVC

- We have pretty high quality POSIX polyfills now
- We no longer need to override malloc()

Tracked by issue #91
Improves upon #341
This commit is contained in:
Justine Tunney
2023-03-28 09:27:41 -07:00
parent e4881686b4
commit cbddf4661b
8 changed files with 700 additions and 751 deletions

3
ggml.h
View File

@@ -183,9 +183,6 @@ extern "C" {
#define GGML_MAX_CONTEXTS 64
#define GGML_MAX_OPT 4
void* _malloc(size_t n);
void _free(void* p);
#ifdef __ARM_NEON
// we use the built-in 16-bit float type
typedef __fp16 ggml_fp16_t;