*** Wartungsfenster jeden ersten Mittwoch vormittag im Monat ***

Skip to content
Snippets Groups Projects
Commit be1f4ed6 authored by Zabloudil, Jan's avatar Zabloudil, Jan
Browse files

updates from Sabrina

parent e67c0948
Branches
No related tags found
No related merge requests found
--- ---
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
* is the tool we use for graphical applications * in 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
# example for Abaqus CAE 2017 # Example for Abaqus CAE 2023
``` ```
#!/bin/bash #!/bin/bash
#SBATCH --partition E5-1650 #
#SBATCH --qos=E5-1650-inter #SBATCH --output=test.out
#SBATCH --nodes=1 #SBATCH --nodes=1
#SBATCH --ntasks-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=14 #SBATCH --nodes=1
#SBATCH --mem=30G #SBATCH --tasks-per-node=1
#SBATCH --job-name=fluent171 #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 jobs * 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
* to detach the display: * the 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.
--- ---
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment