Skip to content

Commit

Permalink
Installation instructions updated
Browse files Browse the repository at this point in the history
  • Loading branch information
manan-garg1504 committed Oct 11, 2023
1 parent 3ed8855 commit 7c24159
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/Vizier_Installation.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 6 additions & 0 deletions docs/source/install_acme.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion docs/source/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]

This comment has been minimized.

Copy link
@ShvetankPrakash

ShvetankPrakash Oct 13, 2023

Collaborator

@manan-garg1504 does this command work without error? Seems when I ran it following your steps I got:

ERROR: Ignored the following versions that require a different python version: 2020.10.8 Requires-Python <3.9,>=3.5; 2020.11.12 Requires-Python <3.9,>=3.6; 2020.11.23 Requires-Python <3.9,>=3.6; 2020.11.3 Requires-Python <3.9,>=3.6; 2020.12.16 Requires-Python <3.9,>=3.6; 2020.12.2 Requires-Python <3.9,>=3.6; 2020.12.23 Requires-Python <3.9,>=3.6; 2020.2.20 Requires-Python !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8,>=2.7; 2020.3.19 Requires-Python !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8,>=2.7; 2020.4.1 Requires-Python !=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,<3.8,>=2.7; 2020.4.22 Requires-Python <3.8,>=3.5; 2020.5.13 Requires-Python <3.8,>=3.5; 2020.5.7 Requires-Python <3.8,>=3.5; 2020.6.1 Requires-Python <3.9,>=3.5; 2020.6.26 Requires-Python <3.9,>=3.5; 2020.7.14 Requires-Python <3.9,>=3.5; 2020.7.20 Requires-Python <3.9,>=3.5; 2020.7.24 Requires-Python <3.9,>=3.5; 2020.7.30 Requires-Python <3.9,>=3.5; 2020.8.10 Requires-Python <3.9,>=3.5; 2020.8.17 Requires-Python <3.9,>=3.5; 2020.8.28 Requires-Python <3.9,>=3.5; 2020.9.14 Requires-Python <3.9,>=3.5; 2020.9.16 Requires-Python <3.9,>=3.5; 2020.9.24 Requires-Python <3.9,>=3.5; 2020.9.29 Requires-Python <3.9,>=3.5; 2021.1.14 Requires-Python <3.9,>=3.6; 2021.1.21 Requires-Python <3.9,>=3.6; 2021.1.28 Requires-Python <3.9,>=3.6; 2021.1.8 Requires-Python <3.9,>=3.6; 2021.2.19 Requires-Python <3.9,>=3.6; 2021.2.9 Requires-Python <3.9,>=3.6
ERROR: Could not find a version that satisfies the requirement jaxlib==0.3.5 (from dm-acme[envs,jax,testing,tf]) (from versions: 0.1.63, 0.3.14, 0.3.15, 0.3.20, 0.3.22, 0.3.24, 0.3.25, 0.4.0, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.6, 0.4.7, 0.4.9, 0.4.10, 0.4.11, 0.4.12, 0.4.13, 0.4.14, 0.4.15, 0.4.16, 0.4.17, 0.4.18)
ERROR: No matching distribution found for jaxlib==0.3.5

This comment has been minimized.

Copy link
@manan-garg1504

manan-garg1504 Oct 13, 2023

Author Collaborator

It does not run without error. Even with the error message, CFU-Playground's scripts run properly. I included the jax part for the sake of completeness, and a possible future resolution ...

```

Now, run ```conda env list```, which will show the path to your arch-gym environment.

Expand Down
31 changes: 31 additions & 0 deletions install_sim.sh
Original file line number Diff line number Diff line change
@@ -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
File renamed without changes.

0 comments on commit 7c24159

Please sign in to comment.