-
Notifications
You must be signed in to change notification settings - Fork 0
/
env.sh
33 lines (27 loc) · 1.46 KB
/
env.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
### change this to your own llvm install path
# export LLVM_INSTALL_PATH="/home/jhlou/LLVM17/llvm-project/build"
export LLVM_INSTALL_PATH="/home/xcgao/tools/llvm-18/build"
LLVM_BUILD_DIR="/home/xcgao/tools/llvm-18/build/"
LLVM_INSTALL_DIR="/home/xcgao/tools/llvm-18/build/"
export PROJECT_ROOT=$DIR
export DNNL_LIB="/home/xcgao/projects/forward-opt-cpp/third_party/oneDNN/lib"
export BUILD_PATH=${BUILD_PATH:-$PROJECT_ROOT/build}
export INSTALL_PATH=${INSTALL_PATH:-$PROJECT_ROOT/build}
echo "PROJECT_ROOT : ${PROJECT_ROOT}"
echo "BUILD_PATH : ${BUILD_PATH}"
echo "LLVM_INSTALL_PATH : ${LLVM_INSTALL_PATH}"
export PATH=$INSTALL_PATH/bin:$PATH
# export PATH=$PROJECT_ROOT/llvm/bin:$PATH
#export PATH=$PROJECT_ROOT/python/tools:$PATH
export LD_LIBRARY_PATH=$INSTALL_PATH/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH=$DNNL_LIB:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=$INSTALL_PATH/bindings/pymlir:$LD_LIBRARY_PATH
# export LD_LIBRARY_PATH=$INSTALL_PATH/bindings/kld:$LD_LIBRARY_PATH
export PYTHONPATH=$PROJECT_ROOT/build/python:$PYTHONPATH
export PYTHONPATH=$LLVM_INSTALL_PATH/python_packages/mlir_core:$PYTHONPATH
# export PYTHONPATH=$LLVM_INSTALL_PATH/python_packages/mlir_core/mlir/_mlir_libs:$PYTHONPATH
# export PYTHONPATH=$PROJECT_ROOT/build/bindings:$PYTHONPATH
export PYTHONPATH=$LLVM_INSTALL_PATH/python:$PYTHONPATH
# export PYTHONPATH=$PROJECT_ROOT/third_party/caffe/python:$PYTHONPATH
module load gcc/9.4.0