Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
chunjie-sam-liu committed Dec 21, 2024
1 parent a4c56b8 commit 97ac477
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
11 changes: 7 additions & 4 deletions vsc-tunnel-gpu.slrm
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 6 additions & 3 deletions vsc-tunnel.slrm
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 97ac477

Please sign in to comment.