diff --git a/docs/source/Vizier_Installation.md b/docs/source/Vizier_Installation.md index 222bd101..689d5b76 100644 --- a/docs/source/Vizier_Installation.md +++ b/docs/source/Vizier_Installation.md @@ -1,6 +1,6 @@ # Install Vizier -You can run the following script in the arch-gym environment to install vizier : +Activate the arch-gym conda environment, then in the repository root run the following script to install vizier : ``` ./install_sim viz diff --git a/docs/source/install_acme.sh b/docs/source/install_acme.sh index c0676900..7e5e5f66 100755 --- a/docs/source/install_acme.sh +++ b/docs/source/install_acme.sh @@ -1,4 +1,10 @@ #!/bin/bash +echo "RUNNING ACME INSTALLATION SHELL SCRIPT" +if export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:~/.conda/envs/arch-gym/lib/; then + echo "Command succeeded" +else + echo "Command failed" +fi # Change directory to the "acme" folder cd ../../acme diff --git a/docs/source/installation.md b/docs/source/installation.md index a8a8c7ca..84384b87 100644 --- a/docs/source/installation.md +++ b/docs/source/installation.md @@ -23,7 +23,10 @@ conda activate arch-gym ## Install acme -Simply run ```install_acme.sh``` in the arch-gym emnvironment. +Activate the arch-gym conda environment, then in ```oss-arch-gym/acme``` run +``` +pip install .[tf,testing,envs,jax] +``` Now, run ```conda env list```, which will show the path to your arch-gym environment. diff --git a/install_sim.sh b/install_sim.sh new file mode 100755 index 00000000..cff2c1bf --- /dev/null +++ b/install_sim.sh @@ -0,0 +1,31 @@ +#/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 + + ./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 \ No newline at end of file diff --git a/docs/source/vizier_verify.py b/vizier_verify.py similarity index 100% rename from docs/source/vizier_verify.py rename to vizier_verify.py