Skip to content

Commit

Permalink
SLURM scripts and description for running it on the cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
lquenti committed Feb 26, 2024
1 parent 555b2d5 commit 733ae9c
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,17 @@ cargo build --release
should suffice

### [SCC cluster](https://gwdg.de/hpc/systems/scc/)
- Use `rustup`, not modules
- Get a up to date rust compiler via `rustup update`

- `cc`, which is mapped to the default `gcc`, is too old.
- Load a newer gcc via `module load gcc/11.4.0`
- Tell rust to use that one via `CC=$(which gcc) cargo build --release`


### [Emmy HLRN cluster](https://gwdg.de/hpc/systems/emmy/)
- Use `rustup`, not modules
- Get a up to date rust compiler via `rustup update`

- get the newest `gcc` as module as well
- Tell rust to use that one via `CC=$(which gcc) cargo build --release`
14 changes: 14 additions & 0 deletions SLURM/Emmy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash
#SBATCH -t 1:00:00
#SBATCH -p standard96
#SBATCH --output=emmy-%j.out

CLUSTER="emmy"

SCRIPT_DIR="/scratch-emmy/usr/$(whoami)/blackheap"
cd $SCRIPT_DIR

PATH_TO_SAVE_OUTPUT="${SCRIPT_DIR}/output_${CLUSTER}"
PATH_TO_BENCHMARK_FILE="${SCRIPT_DIR}/benchmark_${CLUSTER}.dat"

./target/release/blackheap ${PATH_TO_SAVE_OUTPUT} -f ${PATH_TO_BENCHMARK_FILE}
16 changes: 16 additions & 0 deletions SLURM/SCC.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/bin/bash
#SBATCH -t 1:00:00
#SBATCH -p medium
#SBATCH --output=scc-%j.out
#SBATCH --mem=5G

CLUSTER="scc"

SCRIPT_DIR="/scratch/users/$(whoami)/blackheap"
cd $SCRIPT_DIR

PATH_TO_SAVE_OUTPUT="${SCRIPT_DIR}/output_${CLUSTER}"
PATH_TO_BENCHMARK_FILE="${SCRIPT_DIR}/benchmark_${CLUSTER}.dat"

./target/release/blackheap ${PATH_TO_SAVE_OUTPUT} -f ${PATH_TO_BENCHMARK_FILE}

0 comments on commit 733ae9c

Please sign in to comment.