ggml-omega
aien-dev/ggml-omega
Brought by drakestapleton
ggml-omega / tests / exports.sh
| 1 | #!/bin/sh |
| 2 | # Only the ggml loader entry point is public. Private helpers must not bind to |
| 3 | # same-named functions in the host process (e.g. libmtmd's incompatible SHA ABI). |
| 4 | set -eu |
| 5 | case "$(uname -s)" in |
| 6 | Darwin) symbols=$(nm -gU "$1" | awk '{sub(/^_/, "", $NF); print $NF}') ;; |
| 7 | *) symbols=$(nm -D --defined-only "$1" | awk '{print $NF}') ;; |
| 8 | esac |
| 9 | test "$symbols" = ggml_backend_init || { |
| 10 | echo 'FAIL unexpected exported backend symbols' >&2 |
| 11 | printf '%s\n' "$symbols" >&2 |
| 12 | exit 1 |
| 13 | } |
| 14 | echo 'PASS only ggml_backend_init exported' |