cc_staff
153
edits
m (Use "local" for computer to make it extra clear) |
(Add section of remote off-screen windows) |
||
Line 112: | Line 112: | ||
</tab> | </tab> | ||
</tabs> | </tabs> | ||
=== Remote off-screen windows via Xvfb === | |||
Some applications insist on displaying graphical output, but you don't actually need to see them since the results are saved in a file. | |||
In that case the job can run as a regular batch job, using either the CPU or the GPU for 3D rendering. To enable this you can run | |||
the application you are calling with the X virtual frame buffer (Xvfb) in a job script as follows: | |||
xvfb-run <name-of-application> | |||
if using the CPU for rendering or | |||
xvfb-run vglrun -d egl <name-of-application> | |||
if using the GPU for rendering, in which case you need to reserve one GPU with Slurm, see [[Using_GPUs_with_Slurm|Using GPUs with Slurm]]. | |||
Note that, depending on the workload the GPU may not necessarily be faster than the CPU, so it's important to benchmark before | |||
committing to using the more expensive GPU. | |||
=== Start a remote desktop via VNC === <!--T:92--> | === Start a remote desktop via VNC === <!--T:92--> |