forked from srivatsankrishnan/oss-arch-gym
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_sim.sh
executable file
·66 lines (40 loc) · 1.79 KB
/
install_sim.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#/bin/sh
#install cfu-playground submodule
if [ $1 == 'cfu' ]; then
git submodule update --init sims/CFU-Playground/CFU-Playground
cd sims/CFU-Playground/CFU-Playground
sudo apt-get install -y ninja-build
./scripts/setup_vexriscv_build.sh
./scripts/setup
make install-sf
fi
#install vizier in arch-gym conda environment
#Assumes user is in the arch-gym conda environment
if [ $1 == 'viz' ]; then
git clone https://github.com/ShvetankPrakash/vizier.git
cd vizier
sudo apt-get install -y libprotobuf-dev
pip install -r requirements.txt --use-deprecated=legacy-resolver
pip install -e .
./build_protos.sh
pip install -r requirements-algorithms.txt
pip install -r requirements-benchmarks.txt
fi
#install Project_FARSI submodule
if [ $1 == 'farsi' ]; then
# first, delete the current Project_FARSI folder if any
git submodule add https://github.com/facebookresearch/Project_FARSI.git Project_FARSI
git submodule update --init Project_FARSI
echo "---Submodule Project_FARSI has been created!---"
cd Project_FARSI && git clone https://github.com/zaddan/cacti_for_FARSI.git && cd ..
echo "---Downloaded cacti_for_FARSI---"
#Use the environment_FARSI.yml file to update the conda env dependencies
echo "---Updating the conda env with additional dependencies for FARSI---"
cd sims/FARSI_sim && conda env update -f environment_FARSI.yml && cd ../..
sudo apt update && sudo apt install -y build-essential && cd Project_FARSI/cacti_for_FARSI && make clean && make
cd ../..
echo "---INSTALLING ACME: ---"
cd acme && pip install .[jax,tf,testing,envs] && cd ..
echo "---ACME installation completed!---"
sudo apt-get update && sudo apt-get -y install libgmp-dev && pip install scikit-optimize
fi