-
Notifications
You must be signed in to change notification settings - Fork 1
/
three-chains-README.txt
48 lines (38 loc) · 1.42 KB
/
three-chains-README.txt
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
sudo apt install build-essential (cmake, make, g++, gcc)
git clone https://github.com/openucx/three-chains.git
# TO install LLVM:
sudo apt install libffi-dev autoconf libtool
cd three-chains/contrib/ifunc/orcjit
# Assuming to install at $HOME/llvm
./build_llvm.sh
export UCX_PATH=${HOME}/opt
export LLVM_PATH=${HOME}/llvm
export LD_LIBRARY_PATH=${LLVM_PATH}/lib:${UCX_PATH}/lib
export PATH=${PATH}:${HOME}/julia-1.8.0-beta3/bin
export CPATH=${UCX_PATH}/include:${LLVM_PATH}/include
export C_INCLUDE_PATH=${UCX_PATH}/include:${LLVM_PATH}/include
export CPLUS_INCLUDE_PATH=${UCX_PATH}/include:${LLVM_PATH}/include
export INCLUDE=${UCX_PATH}/include:${LLVM_PATH}/include
export INCLUDEPATH=${UCX_PATH}/include:${LLVM_PATH}/include
export INCLUDE_PATH=${UCX_PATH}/include:${LLVM_PATH}/include
cd ../../../three-chains
# installing in opt in home dir
./autogen.sh
./contrib/configure-release --prefix=${HOME}/opt --with-llvm=${HOME}/llvm
# make sure at the end LLVM support: enabled
#Build UCX
make -j$nproc
#install UCX
make install
# To build ifuncs
cd contrib/ifunc
make -i (to ignore arm64)
export UCX_IFUNC_LIB_DIR=${PWD}
Open two terminals:
In one:
./lat_bw_test.x
Another:
./lat_bw_test.x localhost 1
# To install Julia
wget https://julialang-s3.julialang.org/bin/linux/aarch64/1.8/julia-1.8.0-beta3-linux-aarch64.tar.gz (OR CORRECT ARCHITECTURE)
# untar into known directory and make sure to set PATH to the bin (see exports.sh)