-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_with_slurm_podman.sh
executable file
·35 lines (28 loc) · 1.38 KB
/
run_with_slurm_podman.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
#! /bin/bash
if [ ! -f "breakhammer_artifact.tar" ]; then
echo "[INFO] Podman image unavailable. Saving breakhammer_artifact build for compute nodes to load"
podman save -o breakhammer_artifact.tar breakhammer_artifact
fi
AE_SLURM_PART_NAME="cpu_part"
echo "[INFO] Generating Ramulator2 configurations and run scripts for attacker workloads"
podman run --rm -v $PWD:/app breakhammer_artifact "python3 setup_slurm_podman.py \
--working_directory $PWD \
--base_config /app/base_config.yaml \
--trace_combination /app/mixes/microattack.mix \
--trace_directory /app/cputraces \
--result_directory /app/ae_results/microattack \
--partition_name $AE_SLURM_PART_NAME"
echo "[INFO] Starting Ramulator2 attacker simulations"
python3 execute_run_script.py --slurm
echo "[INFO] Generating Ramulator2 configurations and run scripts for benign workloads"
podman run --rm -v $PWD:/app breakhammer_artifact "python3 setup_slurm_podman.py \
--working_directory $PWD \
--base_config /app/base_config.yaml \
--trace_combination /app/mixes/microbenign.mix \
--trace_directory /app/cputraces \
--result_directory /app/ae_results/microbenign \
--partition_name $AE_SLURM_PART_NAME"
echo "[INFO] Starting Ramulator2 benign simulations"
python3 execute_run_script.py --slurm
echo "[INFO] You can track run status with the <check_run_status.sh> script"
rm "$PWD/run.sh"