Users interested in executing a program on a node with X11 may use the “–x11” flag with srun. Example code:
module load slurm matlab
srun --x11 matlab
module load slurm
srun --x11 xterm
Not all jobs can be scripted for easy submission to the KoKo HPC cluster. In these instances, you should do the following to allocate resources and start the GUI of the program you wish to use. These instructions are generic and will apply to most GUI based programs; however, several programs, such as Fluent from Ansys, have their own special scripts for starting up properly. Please see other posts for these scripts and startup procedures. To allocate resources please do the following:
- Log into the KoKo head node via X2Go, RDP, or SSH with x11 forwarding.
- Open a terminal session.
- Load the module you wish to use with the syntax “module load <module name>”. To see a list of available modules, type “module avail” (warning: this is a very long list).
- Use the “srun” command to allocate resources and start your program
srun -N 2 -n 40 --x11 -p longq <program name>
- N refers to the number of nodes you need
- n refers to the number of CPUs/Cores/Threads you need
- –x11 sets x11 forwarding which is required for interactive use
- p refers to the partition/queue you wish to use, different queues have different allocation times (click here for details)
- Lastly is your programs name or script to start the program
- When complete, close the interactive window and press ctrl+d to deallocate the resources in the terminal prompt.