From 5f6af870285b40b7a4b97f8a9ab56c4c2db3f7a2 Mon Sep 17 00:00:00 2001 From: "Alex Pedcenko (aa3025)" Date: Tue, 24 Oct 2023 22:56:23 +0100 Subject: [PATCH] Add files via upload --- epyc/01_START.hta | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/epyc/01_START.hta b/epyc/01_START.hta index b968ceb..ccac7c9 100644 --- a/epyc/01_START.hta +++ b/epyc/01_START.hta @@ -156,6 +156,8 @@ if document.getElementById("cpus").Value>128 then MsgBox "128CPUS max" document.getElementById("cpus").Value=128 Exit Sub +else + ncpus="-N1 -n " & cpus.Value end if 'document.getElementById(1).disabled = true @@ -195,9 +197,12 @@ if (document.getElementById("exist_job").checked = false) Or host.Value = "" the newjob=1 +'msgbox(cpus.Value) if (document.getElementById("docker").checked = false) then - cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & nnodes & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/slurm/vnc.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34) + cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & ncpus & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/slurm/vnc.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34) + +'msgbox(cmd) else cmd="..\tools\plink.exe -t -ssh " & middleman & ".coventry.ac.uk -l " & login.Value & " -pw " & pass.Value & " " & chr(34) & "rm -fr ~/.cache/sessions; J=$(sbatch " & nnodes & feature & exclude_nodes & include_nodes & " -t " & runtime.Value & ":00:00 /share/apps/docker/start_docker.slurm); JOBID=$(grep -o " & chr(34) & "[0-9]" & chr(34) & " <<< $J | tr -d " & chr(39) & "\n" & chr(39) & "); echo $JOBID >~/VNCJOB; echo Your VNC Job $JOBID is submitted to the queue... you will be connected when the job will be RUNNING; echo ; squeue -u " & login.Value & " -j $JOBID; while [[ " & chr(34) & "$STATE" & chr(34) & " != " & chr(34) & "R" & chr(34) & " ]] ; do STATE=$(" & state_cmd & "); sleep 2; done; echo ; echo Your job seems now RUNNING! Let us check again...; echo ; echo ; squeue -j $JOBID; cat ~/vnc.log; echo ; echo Note above the Target Node for your VNC Session. If you requested more than ONE node, you need to connect to the FIRST node in the above node list.; echo ; echo You can close this window and continue...; " & chr(34)