Skip to content

Commit cdabbec

Browse files
committed
Add missing environment variables for tsingmicro backend
Add the ${LLVM_BINARY_DIR} environment variable to $PATH to use the tsingmicro toolchain. Also, make sure to explicitly set the environment variables during the build and install phase. Signed-off-by: Liu Haoyu <liuhaoyutz@126.com>
1 parent ce20dba commit cdabbec

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/tsingmicro3.3-build-and-test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ jobs:
4040
source ~/env.sh
4141
export FLAGTREE_BACKEND=tsingmicro
4242
export TRITON_APPEND_CMAKE_ARGS="-DCMAKE_BUILD_TYPE=Release"
43+
export TX8_DEPS_ROOT=~/.flagtree/tsingmicro/tx8_deps
44+
export LLVM_SYSPATH=~/.flagtree/tsingmicro/tsingmicro-llvm21-glibc2.30-glibcxx3.4.28-python3.10-x64
45+
export LLVM_BINARY_DIR=${LLVM_SYSPATH}/bin
46+
export PYTHONPATH=${LLVM_SYSPATH}/python_packages/mlir_core:$PYTHONPATH
47+
export LD_LIBRARY_PATH=$TX8_DEPS_ROOT/lib:$LD_LIBRARY_PATH
48+
export PATH=${LLVM_BINARY_DIR}:${PATH}
4349
cd python
4450
python3 -m pip install . --no-build-isolation
4551
@@ -54,6 +60,7 @@ jobs:
5460
export LLVM_BINARY_DIR=${LLVM_SYSPATH}/bin
5561
export PYTHONPATH=${LLVM_SYSPATH}/python_packages/mlir_core:$PYTHONPATH
5662
export LD_LIBRARY_PATH=$TX8_DEPS_ROOT/lib:$LD_LIBRARY_PATH
63+
export PATH=${LLVM_BINARY_DIR}:${PATH}
5764
5865
# tsingmicro
5966
pushd third_party/tsingmicro/examples

0 commit comments

Comments
 (0)