***
Wartungsfenster jeden ersten Mittwoch vormittag im Monat
***
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mul-training
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ASC Public
Training Materials
mul-training
Commits
be1f4ed6
Commit
be1f4ed6
authored
2 years ago
by
Zabloudil, Jan
Browse files
Options
Downloads
Patches
Plain Diff
updates from Sabrina
parent
e67c0948
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gui/gui.md
+130
-130
130 additions, 130 deletions
gui/gui.md
with
130 additions
and
130 deletions
gui/gui.md
+
130
−
130
View file @
be1f4ed6
---
---
author
:
Jan Zabloudil
author
:
Jan Zabloudil
title
:
Applications
title
:
Applications
revealOptions
:
revealOptions
:
transition
:
'
fade'
transition
:
'
fade'
---
---
# Graphical Applications
# Graphical Applications
Running graphical applications interactively
Running graphical applications interactively
*
is an important feature on our clusters
*
is an important feature on our clusters
*
is not a usual feature of HPC clusters
*
is not a usual feature of HPC clusters
*
because it also makes things complicated
*
because it also makes things complicated
*
how/where to display the graphics
*
how/where to display the graphics
*
scheduling of interactive jobs
*
scheduling of interactive jobs
---
---
# Xpra
# Xpra
*
is the tool we use for graphical applications
*
i
s the tool we use for graphical applications
*
i
n addition to VNC
* in addition to VNC
* see [[06_background_info.html#(3)|Background information]] slides for more technical details
---
---
# Start VNC desktop
#
start VNC desktop
#
#
How to find out the VNC ID
*
pxxxxxxx@hpc-login1:~$ id
*
start VNC server (e.g. on login node 1):
uid=30252(pxxxxxxxx) gid=10100(staff) groups=10100(staff)
*
uid=30252 -> vnc id =52
```
*
start VNC server (e.g. on hpc-login1.unileoben.ac.at):
vncserver -geometry 1920x1080 -depth 24 :display-number
```
```
*
use UID (user id) minus 30000 as
display-number
vncserver -geometry 1920x1080 -depth 24 :
display-number
*
MATE desktop (is a fork of Gnome 2) is preconfigured in ''~/.vnc/xstartup''
```
*
connect your VNC-viewer to address ''
mul-hpc-81a
.unileoben.ac.at:display-number''
*
connect your VNC-viewer to address ''
hpc-login1
.unileoben.ac.at:display-number''
*
or ''
mul-hpc-81b
'' for login node 2
*
or ''
hpc-login2.unileoben.ac.at
'' for login node 2
---
---
# Xpra overview
# Xpra overview
*
Xpra server runs on same compute nodes as application
*
Xpra server runs on same compute nodes as application
* it is started together with application in job script
*
it is started together with application in job script
* each application has a dedicated Xpra server
*
each application has a dedicated Xpra server
* the display can be detached and reattached any time
*
the display can be detached and reattached any time
---
---
# Job script
# Job script
#
e
xample for Abaqus CAE 20
17
#
E
xample for Abaqus CAE 20
23
```
```
#!/bin/bash
#!/bin/bash
#
SBATCH --partition E5-1650
#
#SBATCH --
qos=E5-1650-inter
#SBATCH --
output=test.out
#SBATCH --nodes=1
#SBATCH --nodes=1
#SBATCH --
n
tasks-per-node=1
#SBATCH --tasks-per-node=1
#SBATCH --
mem=15G
#SBATCH --
job-name=TEST_abq_GUI
#SBATCH --
job-name=abqcae
#SBATCH --
partition=p11
#SBATCH --mem=10G
abq
=
/opt/sw/x86_64/generic/abaqus/Commands/abq2017
module purge
xpra start
\
--daemon
=
no
\
geometry
=
1400x1050
--exit-with-children
=
yes
\
exe
=
"/mulfs/app/generic/abaqus/2023/SIMULIA/Commands/abq2023 cae -mesa"
--start-child
=
"
$abq
cae -mesa"
param
=
""
```
/mulfs/app/generic/gui/VncWrapper.sh
"
$geometry
"
"
$exe
"
"
$param
"
---
---
```
# Job script
# Job script
# example for Fluent 17.1
# Example for Fluent 2023 R2
```
#!/bin/bash
```
#
SBATCH --partition E5-2690v4
#
!/bin/bash
#
SBATCH --qos=E5-2690v4-inter
#
#SBATCH --
nodes=1
#SBATCH --
output=test.out
#SBATCH --
ntasks-per-
node=1
4
#SBATCH --node
s
=1
#SBATCH --
mem=30G
#SBATCH --
tasks-per-node=1
#SBATCH --job-name=fluent
171
#SBATCH --job-name=fluent
_GUI
#SBATCH --partition=p11
fluent
=
/opt/sw/x86_64/generic/ansys_inc/v171/fluent/bin/fluent
#SBATCH --mem=10G
xpra start
\
module purge
--daemon
=
no
\
fluent
=
/mulfs/app/generic/ansys_inc/2023R2/v232/fluent/bin/fluent
--exit-with-children
=
yes
\
geometry
=
1400x1050
--start-child
=
"
$fluent
3ddp -t1"
param
=
""
```
/mulfs/app/generic/gui/VncWrapper.sh
"
$fluent
"
"
$geometry
"
"
$param
"
---
---
----
```
# attach display
*
to see the graphical output you must attach to the Xpra server
# Attach display
*
use ''sbatch+display'' to submit and display a job
*
use ''display JOBID'' to display job with given JOBID
*
to see the graphical output you must attach to the Xpra server
*
use ''display
-all
'' to
display graphical output of all your
job
s
*
use ''
sbatch+
display'' to
submit and display a
job
*
use ''display JOBID'' to display job with given JOBID
*
use ''display-all'' to display graphical output of all your jobs
---
---
# detach display
# Detach display
*
the display can be detached and reattached any time
* t
o detach the display
:
*
t
he display can be detached and reattached any time
*
use ''undisplay JOBID'' for one JOBID
*
to detach the display:
* use ''undisplay
-all
'' for
all your jobs
*
use ''undisplay
JOBID
'' for
one JOBID
*
or
use
symbols on the upper right side of MATE desktop
*
use
''undisplay-all'' for all your jobs
*
or use symbols on the upper right side of MATE desktop
---
---
# attach/detach display
# Attach/Detach display
Live demonstration.
Live demonstration.
---
---
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment