#!/usr/bin/bash
# Wrapper script for llama-server compiled for AMD Zen 5 with ZenDNN.
# Applies the optimal ZenDNN matrix multiplication algorithm by default.

# Set optimal ZenDNN algorithm (Blocked AOCL DLP) for best performance
export ZENDNNL_MATMUL_ALGO=1

# Execute the actual binary
exec /usr/libexec/llama-server/llama-server "$@"
