@@ -9,9 +9,7 @@ module load tsi4 gcc/13.3.0
99export MLIR_SDK_VERSION=/proj/rel/sw/sdk-r.0.1.9
1010echo ' creating python virtual env'
1111/proj/local/Python-3.10.12/bin/python3 -m venv blob-creation
12-
1312source blob-creation/bin/activate
14-
1513echo ' installing mlir and python dependencies'
1614pip install -r ${MLIR_SDK_VERSION} /compiler/python/requirements-common.txt
1715pip install ${MLIR_SDK_VERSION} /compiler/python/mlir_external_packages-1.4.2-py3-none-any.whl
@@ -24,16 +22,18 @@ echo 'creating fpga kernel'
2422cd fpga-kernel
2523cmake -B build-fpga
2624./create-all-kernels.sh
25+ # The for Posix Use cases
2726
28- # The for Posix Use cases
2927echo ' creating posix kernel'
3028cd ../posix-kernel/
3129./create-all-kernels.sh
3230
33- # Change directory to top level llama.cpp
31+ # Change directory to top level llama.cpp
32+
3433cd ../../
3534
3635# Compile for posix with build-posix as a target folder
36+
3737echo ' building llama.cp, ggml for tsavorite and other binary for posix'
3838cmake -B build-posix -DGGML_TSAVORITE=ON -DGGML_TSAVORITE_TARGET=posix -DCMAKE_C_FLAGS=" -DGGML_PERF" -DCMAKE_CXX_FLAGS=" -DGGML_PERF"
3939cmake --build build-posix --config Release
8888cat > ./${TSI_GGML_BUNDLE_INSTALL_DIR} /ggml.sh << EOL
8989#!/bin/bash
9090# Set up library paths for GCC 13.3.0 compatibility
91- export LD_LIBRARY_PATH="/proj/local/gcc-13.3.0/lib64: \$ {LD_LIBRARY_PATH}:\$ (pwd)"
92- tsi_kernels=("add" "sub" "mult" "div" "abs" "inv" "neg" "sin" "sqrt" "sqr" "sigmoid" "silu" "rms_norm" )
91+ export LD_LIBRARY_PATH=\$ {LD_LIBRARY_PATH}:\$ (pwd)
92+ tsi_kernels=("add" "sub" "mult" "div" "abs" "inv" "neg" "sin" "sqrt" "sqr" "sigmoid" "silu" "rms_norm)
9393
9494for kernel in "\$ {tsi_kernels[@]}"; do
9595 mkdir -p ${TSI_BLOB_INSTALL_DIR} /txe_\$ kernel
0 commit comments