diff options
author | Justine Tunney <jtunney@gmail.com> | 2024-01-16 03:16:33 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-16 13:16:33 +0200 |
commit | a0b3ac8c48b66206b9c5921ce57bd5c0ea6557c3 (patch) | |
tree | dc073f0aca7eee8afcd51ee660555fda5f3b6675 /ggml-quants.c | |
parent | d75c232e1da56f19ac4d2530dadbe0ab3a11fde5 (diff) |
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
Diffstat (limited to 'ggml-quants.c')
0 files changed, 0 insertions, 0 deletions