You can launch remote ParaView server on the HPC compute node to render the data stored on HPC (no need to transfer data to your client machine)
- Reserve a compute node, say 1 “whole” node for 4 hours
salloc -N1 -n8 --exclusive -t 4:00:00
(you can also do it with a slurm submission script of course)
2. then on the node you have been allocated by slurm (say zeus15), launch ParaView server process:
[aa3025@zeus2 ~]$ salloc -N1 -n8 -t 4:00:00
salloc: Granted job allocation 16726
[aa3025@zeus2 ~]$ qstat
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
16726 short4 bash aa3025 R 0:12 1 zeus15
[aa3025@zeus2 ~]$ ssh zeus15
[aa3025@zeus15 ~]$ /share/apps/paraview/ParaView-5.2.0-Qt4-OpenGL2-MPI-Linux-64bit/bin/pvserver -display :0.0 --use-offscreen-rendering
Waiting for client...
Connection URL: cs://zeus15:11111
Accepting connection(s): zeus15:11111
Leave this window alone, the server is now accepting connections on port 11111.
3. Now we need to tunnel from your Desktop machine (which must have the same verion of ParaView installed as on the node (ParaView-5.2.0). First we establish the ssh tunnel from port 11111 of the node to port 11111 of your Desktop PC via Zeus’s login node, say zeus2.
So on your Desktop machine set up the tunnel (add user name before zeus2 if necessary, i.e. user@zeus2):
ssh -L 11111:zeus15:11111 zeus2
You will be logged in to zeus2 in this ssh session. keep this terminal running this is your link to the target node zeus15.
4. Next open local ParaView (Linux,Windows) and “connect to server” “localhost:11111” -> in the 1st console running the server, you will see that connection is made:
[aa3025@zeus15 bin]$ ./pvserver -display :0.0 --use-offscreen-rendering
Waiting for client...
Connection URL: cs://zeus15:11111
Accepting connection(s): zeus15:11111
Client connected.
Now you can open your data files in ParaView directly from your home folder on zeus and process them etc and create your animation:
Once you checked it is all working you can make small 1-line slurm script for starting the ParaView server with sbatch-submitted job.
Alex Pedcenko.
Recent Comments