Skip to content
Snippets Groups Projects
Commit 7dd70a1c authored by Åke Sandgren's avatar Åke Sandgren
Browse files

Fix some minor issues

- Script should be /bin/bash in case one wants it to be able to use the module system inside
- Must create the directory elbencho doesn't
- One should wait for the background processes before exiting the script
parent fcc5a2f8
No related branches found
No related tags found
No related merge requests found
#!/bin/sh #!/bin/bash
#SBATCH -J arrh-storage-benchmark #SBATCH -J arrh-storage-benchmark
usage() { usage() {
...@@ -34,6 +34,8 @@ if [ -z "$DIRECTORY" ] ...@@ -34,6 +34,8 @@ if [ -z "$DIRECTORY" ]
then usage then usage
fi fi
mkdir -p $DIRECTORY
NNODES=$SLURM_NNODES NNODES=$SLURM_NNODES
THREADS=$SLURM_CPUS_PER_TASK THREADS=$SLURM_CPUS_PER_TASK
HOSTS=$(scontrol show hostnames | tr '\n' ',') HOSTS=$(scontrol show hostnames | tr '\n' ',')
...@@ -81,3 +83,5 @@ echo ...@@ -81,3 +83,5 @@ echo
info "Benchmark done" info "Benchmark done"
elbencho --hosts "$HOSTS" --quit elbencho --hosts "$HOSTS" --quit
wait
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment