Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
ssh_scripts
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mathis Rosenhauer
ssh_scripts
Commits
d92b0f8c
Commit
d92b0f8c
authored
Jul 11, 2019
by
Mathis Rosenhauer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
start-vnc: allow constraint(s) to be specified
parent
18f2462c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
start-vnc
start-vnc
+9
-1
No files found.
start-vnc
View file @
d92b0f8c
...
...
@@ -87,6 +87,9 @@ SVNC_NODES="half"
# Quality of service
SVNC_QOS
=
"normal"
# Constraint for feature selection (GPU and/or memory)
SVNC_CONSTRAINT
=
""
# Uncomment this if you use TurboVNC as vncviewer.
#
# TurboVNC will work without this option but then it will use its own
...
...
@@ -146,6 +149,7 @@ Usage: $(basename "$0") [OPTION]
Available values for OPTION include:
-A acctcode acctcode of job
-C list constraint for feature selection
-g geometry initial geometry of vnc window
-n nodes number of nodes
-q qos job qos
...
...
@@ -168,10 +172,12 @@ ssh_frontend () {
parse_options
()
{
local
option
while
getopts
'A:g:n:q:t:u:v:x:'
option
;
do
while
getopts
'A:
C:
g:n:q:t:u:v:x:'
option
;
do
case
${
option
}
in
A
)
SVNC_ACCTCODE
=
"
$OPTARG
"
;;
C
)
SVNC_CONSTRAINT
=
"
$OPTARG
"
;;
g
)
SVNC_GEOMETRY
=
"
$OPTARG
"
;;
n
)
SVNC_NODES
=
"
$OPTARG
"
...
...
@@ -193,6 +199,7 @@ parse_options () {
done
readonly
SVNC_ACCTCODE
readonly
SVNC_CONSTRAINT
readonly
SVNC_GEOMETRY
readonly
SVNC_QOS
readonly
SVNC_RUNTIME
...
...
@@ -229,6 +236,7 @@ submit_vnc_job () {
ssh_frontend
"cd .startvnc && sbatch"
<<
EOF
#!/bin/bash -l
#SBATCH --partition=gpu
#SBATCH --constraint=
${
SVNC_CONSTRAINT
}
${
sbatch_resources
}
#SBATCH --qos=
${
SVNC_QOS
}
#SBATCH --time=
${
SVNC_RUNTIME
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment