-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_all.sh
executable file
·31 lines (27 loc) · 1.11 KB
/
setup_all.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
#! /bin/bash
echo "[INFO] Installing Python dependencies"
pip3 install -r requirements.txt
mkdir DB_results
if [ "$(ls -A DB_results/)" ]; then
echo "[INFO] DB_results/ directory is not empty. Skipping download"
else
echo "[INFO] DB_results/ directory is empty"
echo "[INFO] Downloading the results into ./DB_results"
wget https://zenodo.org/records/14343791/files/PaCRAM_DB.tar.gz
echo "[INFO] Decompressing the results into ./DB_results"
tar -xzf PaCRAM_DB.tar.gz -C DB_results --no-same-owner
fi
mkdir -p Ram_scripts/ramulator_pacram/cputraces/
if [ "$(ls -A Ram_scripts/ramulator_pacram/cputraces/)" ]; then
echo "[INFO] cputraces/ directory is not empty. Skipping download"
else
echo "[INFO] cputraces/ directory is empty"
echo "[INFO] Downloading the traces into cputraces"
wget https://zenodo.org/records/14345886/files/PaCRAM_Ram_traces.tar.gz
echo "[INFO] Decompressing the traces into cputraces"
tar -xzf PaCRAM_Ram_traces.tar.gz -C Ram_scripts/ramulator_pacram/cputraces --no-same-owner
fi
cd Ram_scripts/ramulator_pacram
echo "[INFO] Compiling Ramulator2"
cmake .
make -j