diff options
author | Derf Null <derf@finalrewind.org> | 2023-04-24 15:00:25 +0200 |
---|---|---|
committer | Derf Null <derf@finalrewind.org> | 2023-04-24 15:00:25 +0200 |
commit | 8404f453f7312d5eabc0d0434c38c0549705f571 (patch) | |
tree | ecf615225c16b955fef1fee4e14bb584cdde4f09 | |
parent | 9a1498f70b4383d1ad75d6ec5671e434f72a273a (diff) |
add set-root-dir helper
-rw-r--r-- | README.md | 3 | ||||
-rwxr-xr-x | set-root-dir.sh | 3 |
2 files changed, 5 insertions, 1 deletions
@@ -135,6 +135,7 @@ Clone the repository: git clone https://github.com/CMU-SAFARI/prim-benchmarks cd prim-benchmarks +./set-root-dir.sh ``` ## Running PrIM @@ -146,7 +147,7 @@ The repository includes scripts to run weak scaling and strong scaling experimen * `run_strong_rank.py`: Strong scaling experiments for 16 PrIM benchmarks using 1 rank of UPMEM DPUs (1 to 64 DPUs). * `run_strong_full.py`: Strong scaling experiments for 16 PrIM benchmarks using 4 to 32 ranks of UPMEM DPUs (256 to 2048 DPUs). -To use these scripts, update `rootdir` in the beginning of each script. To run weak scaling experiments for BFS or SpMV, update the paths to input files in `run_weak.py`. +To run weak scaling experiments for BFS or SpMV, update the paths to input files in `run_weak.py`. The scripts save the results in a folder called `profile` inside each benchmark folder. ```sh diff --git a/set-root-dir.sh b/set-root-dir.sh new file mode 100755 index 0000000..35be69f --- /dev/null +++ b/set-root-dir.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +sed -i 's!rootdir = "/"!rootdir = "'"$(pwd)"'"!' *.py |