Skip to content
Snippets Groups Projects
Commit f992d484 authored by Mike Boss's avatar Mike Boss
Browse files

Rename BJOB_* variables to VSC_BJOB_*

parent 683d5082
No related branches found
No related tags found
No related merge requests found
...@@ -298,7 +298,7 @@ ENDSSH ...@@ -298,7 +298,7 @@ ENDSSH
# run the code-server job on Euler and save the ip of the compute node in the file vscip in the home directory of the user on Euler # run the code-server job on Euler and save the ip of the compute node in the file vscip in the home directory of the user on Euler
echo -e "Connecting to $VSC_HOSTNAME to start the code-server in a batch job" echo -e "Connecting to $VSC_HOSTNAME to start the code-server in a batch job"
BJOB_OUT=$(ssh $VSC_SSH_OPT bsub -n $VSC_NUM_CPU -W $VSC_RUN_TIME -R "rusage[mem=$VSC_MEM_PER_CPU_CORE]" $VSC_SNUM_GPU<<ENDBSUB VSC_BJOB_OUT=$(ssh $VSC_SSH_OPT bsub -n $VSC_NUM_CPU -W $VSC_RUN_TIME -R "rusage[mem=$VSC_MEM_PER_CPU_CORE]" $VSC_SNUM_GPU<<ENDBSUB
module load $VSC_MODULE_COMMAND module load $VSC_MODULE_COMMAND
export XDG_RUNTIME_DIR="\$HOME/vsc_runtime" export XDG_RUNTIME_DIR="\$HOME/vsc_runtime"
VSC_IP_REMOTE="\$(hostname -i)" VSC_IP_REMOTE="\$(hostname -i)"
...@@ -307,7 +307,7 @@ code-server --bind-addr=\${VSC_IP_REMOTE}:8899 ...@@ -307,7 +307,7 @@ code-server --bind-addr=\${VSC_IP_REMOTE}:8899
ENDBSUB ENDBSUB
) )
BJOB_ID=$(echo $BJOB_OUT | awk '/is submitted/{print substr($2, 2, length($2)-2);}') VSC_BJOB_ID=$(echo $BJOB_OUT | awk '/is submitted/{print substr($2, 2, length($2)-2);}')
# wait until batch job has started, poll every $VSC_WAITING_INTERVAL seconds to check if /cluster/home/$VSC_USERNAME/vscip exists # wait until batch job has started, poll every $VSC_WAITING_INTERVAL seconds to check if /cluster/home/$VSC_USERNAME/vscip exists
# once the file exists and is not empty the batch job has started # once the file exists and is not empty the batch job has started
......
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