interplane.Get Omega
Read in your language

ggml-omega

aien-dev/ggml-omega

Brought by drakestapleton

branch main Branches Tags History

ggml-omega / tests / exports.sh

14 lines · 534 bytes Raw Blame History
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).
4set -eu
5case "$(uname -s)" in
6 Darwin) symbols=$(nm -gU "$1" | awk '{sub(/^_/, "", $NF); print $NF}') ;;
7 *) symbols=$(nm -D --defined-only "$1" | awk '{print $NF}') ;;
8esac
9test "$symbols" = ggml_backend_init || {
10 echo 'FAIL unexpected exported backend symbols' >&2
11 printf '%s\n' "$symbols" >&2
12 exit 1
13}
14echo 'PASS only ggml_backend_init exported'