llama cpp 部署 - build
要部署LLVM编译器,你可以使用以下步骤:
首先,确保你已经安装了LLVM。如果没有,可以从LLVM官网下载并安装。
克隆LLVM源代码仓库:
git clone https://github.com/llvm-mirror/llvm.git
cd llvm
build
mkdir build
cd build 拼多多帮助力入口
配置构建选项:
../configure --enable-cross-compile --enable-shared --enable-pic --enable-threading=posix --enable-mem=posix --enable-llvm-mri --enable-llvm-sanitizer --enable-llvm-profiling --enable-llvm-profiling-report --enable-llvm-profiling-report-html --enable-llvm-profiling-report-json --enable-llvm-profiling-report-xml --enable-llvm-profiling-report-yaml --enable-llvm-profiling-report-jsonp --enable-llvm-profiling-report-jsonp --enable-llvm-profiling-report-yaml --enable-llvm-profiling-report-yaml --enable-llvm-profiling-report-yaml --enable-llvmcxx --enable-llvmm --enable-llvmm-cxx --enable-llvmm-cxx-static --enable-llvmm-cxx-static-static --enable-llvmm-cxx-static-static-static --enable-llvmm-cxx-static-static-static-static --enable-llvmm-cxx-static-static-static-static-static --enable-llvmm-cxx-static-static-static-static-static-static --enable-llvmm-cxx-static-static-static-static-static-static--with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm/bin --with-llvmdir=/path/to/llvm::
编译LLVM:
make
运行LLVM:
make run
libLLVM.solibLLVM.so
这样,你就可以在你的目标平台上使用LLVM编译器了。