Skip to content
Permalink
Browse files
Update startvncjob.sh
  • Loading branch information
aa3025 committed Sep 4, 2023
1 parent fb77cf5 commit e4c33dece8871ae1a9f5302eb6937d552227dc74
Showing 1 changed file with 9 additions and 1 deletion.
@@ -8,6 +8,14 @@ hpc=zeus1
port=5901
# port can be different on epyc hpc

constraint=""
# or enable below constraint for selection of a compute node (k20,k80,gpu,broadwell etc)
# constraint="--constraint=k80"

partition=""
# or enable below "-p GPU" if you need K80 GPU nodes:
# partition="-p GPU"


vnc(){
sleep 5
@@ -21,7 +29,7 @@ read username
echo " Enter number of hours to book VNC Desktop job on ${hpc} for: "
read hrs

ssh $username@${hpc}.coventry.ac.uk "sbatch -N1 --exclusive -t $hrs:00:00 /share/apps/slurm/vnc.slurm"
ssh $username@${hpc}.coventry.ac.uk "sbatch -N1 ${partition} ${constraint} --exclusive -t $hrs:00:00 /share/apps/slurm/vnc.slurm"

echo "waiting 5 sec..."

0 comments on commit e4c33de

Please sign in to comment.