From 97ac477fd66c7195ad09f57dd8658bc22bda8e02 Mon Sep 17 00:00:00 2001 From: chunjie-sam-liu Date: Sat, 21 Dec 2024 11:41:58 -0500 Subject: [PATCH] update --- vsc-tunnel-gpu.slrm | 11 +++++++---- vsc-tunnel.slrm | 9 ++++++--- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/vsc-tunnel-gpu.slrm b/vsc-tunnel-gpu.slrm index cf5be6f..abdf20f 100644 --- a/vsc-tunnel-gpu.slrm +++ b/vsc-tunnel-gpu.slrm @@ -5,20 +5,23 @@ #SBATCH --partition=gpuq #SBATCH --mem=80G #SBATCH --time=120:00:00 -#SBATCH --output=/home/%u/tmp/errout/jrocker/vsc-gpu-tunnel.job.%j +#SBATCH --output=/home/%u/tmp/errout/jrocker/vsc-tunnel-gpu.job.%j # customize --output path as appropriate (to a directory readable only by the user!) source ~/tools/anaconda3/bin/activate +TYPE=GPU TEMPDIR=/scr1/users/liuc9/tmp/errout/vsc-tunnel MACHINENAME=$(uuidgen | cut -d"-" -f1) -DATADIR=${TEMPDIR}/${MACHINENAME} -echo $MACHINENAME +MACHINENAME_TYPE=${TYPE}_${MACHINENAME} +DATADIR=${TEMPDIR}/${MACHINENAME_TYPE} + +echo $MACHINENAME_TYPE echo $DATADIR code tunnel user login --provider github && - code tunnel --name ${MACHINENAME} \ + code tunnel --name ${MACHINENAME_TYPE} \ --cli-data-dir ${DATADIR} \ --no-sleep \ --accept-server-license-terms diff --git a/vsc-tunnel.slrm b/vsc-tunnel.slrm index e6bf3a9..b7b276a 100644 --- a/vsc-tunnel.slrm +++ b/vsc-tunnel.slrm @@ -10,15 +10,18 @@ source ~/tools/anaconda3/bin/activate +TYPE=CPU TEMPDIR=/scr1/users/liuc9/tmp/errout/vsc-tunnel MACHINENAME=$(uuidgen | cut -d"-" -f1) -DATADIR=${TEMPDIR}/${MACHINENAME} -echo $MACHINENAME +MACHINENAME_TYPE=${TYPE}_${MACHINENAME} +DATADIR=${TEMPDIR}/${MACHINENAME_TYPE} + +echo $MACHINENAME_TYPE echo $DATADIR code tunnel user login --provider github && - code tunnel --name ${MACHINENAME} \ + code tunnel --name ${MACHINENAME_TYPE} \ --cli-data-dir ${DATADIR} \ --no-sleep \ --accept-server-license-terms