Difference between revisions of "SLURM Interactive"
Line 25: | Line 25: | ||
The same rules apply for graphical jobs. Your X11 connection will '''not automatically'''be forwarded to the remote compute node. You must first obtain your DISPLAY variable by performing the following actions: | The same rules apply for graphical jobs. Your X11 connection will '''not automatically'''be forwarded to the remote compute node. You must first obtain your DISPLAY variable by performing the following actions: | ||
<pre style="white-space:pre-wrap; width: | <pre style="white-space:pre-wrap; width:55%; border:1px solid lightgrey; background:#000000; color:white;"> | ||
[user@itn0 ~]$ echo $DISPLAY | [user@itn0 ~]$ echo $DISPLAY | ||
:158.0 | :158.0 |
Revision as of 18:14, 24 February 2017
Interactive Jobs
The SLURM system on CIRCE/SC allows users to run applications on available compute nodes while in a full shell session. This allows users to run applications that require direct user input and full graphical applications that require more extensive compute resources.
Interactive jobs can be run within a scheduled shell using the srun
command. You’ll want to see the User’s Guide for more information about these options. Here is an example:
[user@login0 ~]$ srun —pty /bin/bash [user@svc-3024-6-25 ~]$
You can now run any compute-intensive task interactively.
Let us say that you require a minimum of 4GB of RAM for your interactive task. We can ask the scheduler to put us on a node with >4GB of RAM by requesting the mem
constraint like so:
[user@login0 ~]$ srun --mem=4096 --pty /bin/bash [user@svc-3024-6-25 ~]$ free total used free shared buffers cached Mem: 16396468 8315580 8080888 0 246772 3247420 -/+ buffers/cache: 4821388 11575080 Swap: 18612216 0 18612216
You can specify a wide variety of complexes. See Using Features
Please note: Unless the “—time=HH:MM:SS” constraint is used, all jobs submitted to SLURM (interactive or batch) will receive the default runtime of 1 hour!
Graphical Jobs
The same rules apply for graphical jobs. Your X11 connection will not automaticallybe forwarded to the remote compute node. You must first obtain your DISPLAY variable by performing the following actions:
[user@itn0 ~]$ echo $DISPLAY :158.0 [user@itn0 ~]$ srun —pty /bin/bash [user@svc-3024-6-25 ~]$ export DISPLAY=itn0:158.0 [user@svc-3024-6-25 ~]$
Note that the login node (itn0) and DISPLAY (:158.0) will most likely not be the same, therefore it is imperative that you take note. Once you have exported the display, you will be able to use GUI applications on compute nodes within the cluster.
We highly recommend using the CIRCE/SC Desktop Environment if you plan to utilize any graphical applications on the cluster.