Skip to content

Commit cbc5b29

Browse files
authored
Merge pull request #78 from tsisw/run-time-sdk-2.2
@FIR-1106 - GGML new release changes for sdk-2.2
2 parents 8fe0556 + 1b62079 commit cbc5b29

File tree

3 files changed

+21
-14
lines changed

3 files changed

+21
-14
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if (GGML_TSAVORITE)
1515

1616
if (NOT DEFINED MLIR_COMPILER_DIR)
1717
if (NOT DEFINED $ENV{MLIR_SDK_VERSION})
18-
set (MLIR_COMPILER_DIR /proj/rel/sw/sdk-r.0.2.0/compiler)
18+
set (MLIR_COMPILER_DIR /proj/rel/sw/sdk-r.0.2.2/compiler)
1919
message("MLIR_SDK_VERSION not set defaulting to ${MLIR_COMPILER_DIR}")
2020
else()
2121
set (MLIR_COMPILER_DIR $ENV{MLIR_SDK_VERSION}/compiler)
@@ -24,7 +24,7 @@ if (GGML_TSAVORITE)
2424

2525
if (NOT DEFINED RUNTIME_DIR)
2626
if (NOT DEFINED $ENV{MLIR_SDK_VERSION})
27-
set (RUNTIME_DIR /proj/rel/sw/sdk-r.0.2.0/${GGML_TSAVORITE_TARGET}/runtime)
27+
set (RUNTIME_DIR /proj/rel/sw/sdk-r.0.2.2/${GGML_TSAVORITE_TARGET}/runtime)
2828
message("MLIR_SDK_VERSION not set defaulting to ${RUNTIME_DIR}")
2929
else()
3030
set (RUNTIME_DIR $ENV{MLIR_SDK_VERSION}/${GGML_TSAVORITE_TARGET}/runtime)
@@ -51,7 +51,7 @@ if (GGML_TSAVORITE)
5151

5252
include_directories($ENV{TSAVORITE_SYSROOT_INCLUDE_DIR})
5353
include_directories(${TSAVORITE_INCLUDE_DIR})
54-
include_directories(${MLIR_COMPILER_DIR}/include/runtime/shim)
54+
include_directories(${MLIR_COMPILER_DIR}/include/tsi-rt/shim)
5555
include_directories(${RUNTIME_DIR}/include)
5656
message("tsavorite backend is enabled")
5757
endif()

ggml-tsi-kernel

tsi-pkg-build.sh

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,27 @@
99

1010
set -e
1111

12+
export MLIR_SDK_VERSION=/proj/rel/sw/sdk-r.0.2.2
13+
export TOOLBOX_DIR=${MLIR_SDK_VERSION}/toolbox/build/install
14+
pip install --upgrade pip
15+
pip install torch==2.7.0
16+
pip install -r ${MLIR_SDK_VERSION}/compiler/python/requirements-common.txt
17+
pip install ${MLIR_SDK_VERSION}/compiler/python/mlir_external_packages-1.5.0-py3-none-any.whl
18+
pip install onnxruntime-training
1219
#Ensure prerequisites are met as follows
1320
echo 'updating submodule'
1421
git submodule update --recursive --init
1522
cd ggml-tsi-kernel/
1623
#module load gcc/13.3.0
17-
export MLIR_SDK_VERSION=/proj/rel/sw/sdk-r.0.2.0
18-
echo 'creating python virtual env'
19-
/proj/local/Python-3.10.12/bin/python3 -m venv blob-creation
20-
source blob-creation/bin/activate
21-
echo 'installing mlir and python dependencies'
22-
pip install --upgrade pip
23-
pip install -r ${MLIR_SDK_VERSION}/compiler/python/requirements-common.txt
24-
pip install ${MLIR_SDK_VERSION}/compiler/python/mlir_external_packages-1.4.2-py3-none-any.whl
25-
pip install onnxruntime-training
24+
#echo 'creating python virtual env'
25+
#/proj/local/Python-3.10.12/bin/python3 -m venv blob-creation
26+
#source blob-creation/bin/activate
27+
#echo 'installing mlir and python dependencies'
28+
#pip install --upgrade pip
29+
#pip install torch==2.7.0
30+
#pip install -r ${MLIR_SDK_VERSION}/compiler/python/requirements-common.txt
31+
#pip install ${MLIR_SDK_VERSION}/compiler/python/mlir_external_packages-1.5.0-py3-none-any.whl
32+
#pip install onnxruntime-training
2633

2734
#build TSI kernels for the Tsavorite backend
2835
#First for FPGA
@@ -97,7 +104,7 @@ cmake --build build-fpga --config Release
97104

98105

99106
echo 'creating tar bundle for fpga'
100-
TSI_GGML_VERSION=0.2.2
107+
TSI_GGML_VERSION=0.2.3
101108
TSI_GGML_BUNDLE_INSTALL_DIR=tsi-ggml
102109
GGML_TSI_INSTALL_DIR=ggml-tsi-kernel
103110
TSI_GGML_RELEASE_DIR=/proj/rel/sw/ggml

0 commit comments

Comments
 (0)