Skip to content

Commit

Permalink
update tensorboard helper so it can pick up lots of dirs based on input
Browse files Browse the repository at this point in the history
and add a version for JASMIN
  • Loading branch information
henryaddison committed Sep 18, 2024
1 parent 0e96d5d commit 80ab5f3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/bp/bp-tb → bin/bp/tb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@

set -euo pipefail

run_name=$1
runs_dir=$1
host=${2:-bp}

port=$(shuf -i 6000-9999 -n 1)
echo "Using port ${port} on ${host}"

ssh -t -L ${port}:localhost:${port} ${host} "~/mambaforge/envs/cuda-downscaling/bin/tensorboard --port=${port} --logdir=/user/work/vf20964/workdirs/${run_name}/tensorboard"
ssh -t -L ${port}:localhost:${port} ${host} "~/mambaforge/envs/cuda-downscaling/bin/tensorboard --port=${port} --logdir=/user/work/vf20964/workdirs/${runs_dir}"
12 changes: 12 additions & 0 deletions bin/jasmin/tb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/bash
# run tensorboard on a login node on a random port

set -euo pipefail

runs_dir=$1
host=${2:-sci2.jasmin}

port=$(shuf -i 6000-9999 -n 1)
echo "Using port ${port} on ${host}"

ssh -t -L ${port}:localhost:${port} ${host} "~/mambaforge/envs/mv-mlde/bin/tensorboard --port=${port} --logdir=/gws/nopw/j04/bris_climdyn/henrya/jasmin-active/workdirs/${runs_dir}"

0 comments on commit 80ab5f3

Please sign in to comment.