gen_linux.sh 528 B

1234567891011121314151617
  1. #!/bin/sh
  2. # This script is intended to run inside the go generate
  3. # working directory must be ../llm/llama.cpp
  4. set -ex
  5. set -o pipefail
  6. # TODO - stopped here - map the variables from above over and refine the case statement below
  7. echo "Starting linux generate script"
  8. source $(dirname $0)/gen_common.sh
  9. init_vars
  10. CMAKE_DEFS="-DLLAMA_CUBLAS=on -DLLAMA_NATIVE=off -DLLAMA_AVX=on -DLLAMA_AVX2=off -DLLAMA_AVX512=off -DLLAMA_FMA=off -DLLAMA_F16C=off ${CMAKE_DEFS}"
  11. BUILD_DIR="gguf/build/cuda"
  12. git_module_setup
  13. apply_patches
  14. build