SIGN IN SIGN UP

ggml : introduce GGML_CALL function annotation (#4850)

This change makes it possible to build ggml-cuda.cu and ggml-metal.m as
independent dynamic shared objects, that may be conditionally linked at
runtime in a multiplatform binary. It introduces a GGML_CALL annotation
that documents which functions have a cyclic call relationship, between
the application code and GPU modules.

This change does nothing, unless the build defines -DGGML_MULTIPLATFORM
which causes back-references and function pointers to conform to MS ABI
which is supported by NVCC, ROCm, XCode, GCC and Clang across platforms
J
Justine Tunney committed
a0b3ac8c48b66206b9c5921ce57bd5c0ea6557c3
Parent: d75c232
Committed by GitHub <noreply@github.com> on 1/16/2024, 11:16:33 AM