


-x11=batch This supports use in a batch job submission, and will provide X11 forwarding to the first node allocated to a batch job.-x11=all This provides X11 forwarding from all allocated compute hosts, which can be quite resource heavy and is an extremely rare use-case.The local machine is assumed to be running the OpenSSH client and. -x11=last This provides X11 forwarding to the last of the compute hosts allocated. This tutorial walks through running a graphical application remotely via X11 forwarding.-x11=first This is the default, and provides X11 forwarding to the first compute hosts allocated.Note that the user must have X11 forwarded to the login node for this to work – this can be checked by running xclock at the command line.Īdditionally, the -x11 argument can be augmented in this fashion –x11= to the following effects: Salloc: Nodes ccs0046 are ready for ~]$ srun -x11 xterm With Slurm, once a resource allocation is granted for an interactive session (or a batch job when the submitting terminal if left logged in), we can use srun to provide X11 graphical forwarding all the way from the compute nodes to our desktop using srun -x11 ~]$ salloc -n 1 Note: this method is not currently working Salloc: Nodes ccs0046 are ready for ~]$ ssh -X ccs0046 xterm Salloc: Waiting for resource configuration This is shown in the example ~]$ salloc -n 1 By adding the -X option to this the X session will be forwarded from the compute node back to the login node. There are two ways to run graphical jobs on the system: SSH into the nodeĪlternatively you can SSH directly into a node you’ve been allocated via salloc. You will also need an X server such as VcXsrv or XMing. $ ssh -X users will need to go to the Connection->SSH->X11 options and enable “Enable X11 Forwarding”. Setting up X Forwardingįirst we must login to SCW with X Forwarding enabled. It is not typical of parallel jobs, but large-memory applications and computationally steered applications can offer such capability. Some applications provide the capability to interact with a graphical user interface (GUI).
