# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/llama-cpp/llama-cpp.conf # Copyright (C) 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- [ $prefix_auto = 1 ] && prefix=opt/llama-cpp && set_confopt pkginstalled curl && var_append cmakeopt ' ' -DLLAMA_CURL=ON if pkginstalled opencl-loader && pkginstalled opencl-headers; then var_append cmakeopt ' ' "-DGGML_OPENCL=ON -DGGML_OPENCL_USE_ADRENO_KERNELS=OFF" fi if pkginstalled hipcc; then export HIPCXX="$(hipconfig -l)/clang" HIP_PATH="$(hipconfig -R)" var_append cmakeopt ' ' "-DGGML_HIP=ON -DAMDGPU_TARGETS='$SDECFG_PKG_ROCM_ARCHS'" fi #hook_add postmake 5 "cp -rvf ../{models,scripts,prompts,examples,docs} $root/$prefix/"