Skip to content

Commit 9beae4c

Browse files
author
Anoop Kapoor
committed
Resolved the conflict
1 parent d14d5ed commit 9beae4c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tsi-pkg-build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ module load tsi4 gcc/13.3.0
99
export MLIR_SDK_VERSION=/proj/rel/sw/sdk-r.0.1.9
1010
echo 'creating python virtual env'
1111
/proj/local/Python-3.10.12/bin/python3 -m venv blob-creation
12-
1312
source blob-creation/bin/activate
14-
1513
echo 'installing mlir and python dependencies'
1614
pip install -r ${MLIR_SDK_VERSION}/compiler/python/requirements-common.txt
1715
pip install ${MLIR_SDK_VERSION}/compiler/python/mlir_external_packages-1.4.2-py3-none-any.whl
@@ -24,16 +22,18 @@ echo 'creating fpga kernel'
2422
cd fpga-kernel
2523
cmake -B build-fpga
2624
./create-all-kernels.sh
25+
#The for Posix Use cases
2726

28-
#The for Posix Use cases
2927
echo 'creating posix kernel'
3028
cd ../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+
3433
cd ../../
3534

3635
#Compile for posix with build-posix as a target folder
36+
3737
echo 'building llama.cp, ggml for tsavorite and other binary for posix'
3838
cmake -B build-posix -DGGML_TSAVORITE=ON -DGGML_TSAVORITE_TARGET=posix -DCMAKE_C_FLAGS="-DGGML_PERF" -DCMAKE_CXX_FLAGS="-DGGML_PERF"
3939
cmake --build build-posix --config Release
@@ -88,8 +88,8 @@ fi
8888
cat > ./${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
9494
for kernel in "\${tsi_kernels[@]}"; do
9595
mkdir -p ${TSI_BLOB_INSTALL_DIR}/txe_\$kernel

0 commit comments

Comments
 (0)