MCPcopy Create free account
hub / github.com/0xShug0/audio.cpp / ggml_aligned_free

Function ggml_aligned_free

external/ggml/src/ggml.c:387–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385}
386
387void ggml_aligned_free(void * ptr, size_t size) {
388 GGML_UNUSED(size);
389#if defined(_MSC_VER) || defined(__MINGW32__)
390 _aligned_free(ptr);
391#elif GGML_USE_CPU_HBM
392 if (ptr != NULL) {
393 hbw_free(ptr);
394 }
395#elif TARGET_OS_OSX
396 if (ptr != NULL) {
397 vm_deallocate((vm_map_t)mach_task_self(), (vm_address_t)ptr, size);
398 }
399#else
400 free(ptr);
401#endif
402}
403
404
405inline static void * ggml_malloc(size_t size) {

Callers 10

ggml_freeFunction · 0.85
repack_q4_0_q4x4x2Function · 0.85
repack_q4x4x2_q4_0Function · 0.85
repack_q8_0_q8x4x2Function · 0.85
repack_q8x4x2_q8_0Function · 0.85
repack_mxfp4_mxfp4x4x2Function · 0.85
repack_mxfp4x4x2_mxfp4Function · 0.85
ggml_threadpool_freeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected