Using paraview with remote server on the clusters#
Install Paraview on your machine. The server (our machine) and client (your machine) should have the same version number. Otherwise the connection will not work. You will find the different versions of ParaView here: The versions installed on our machines are: - izar: 5.10.1 - jed: 5.10.1 - kuma: 5.12.0
There are two options for using ParaView with a remote server on the clusters:
Running Paraview in Client Server Mode via definition file#
-
Download the definition file for the cluster you are targeting
- izar: scitas_izar.pvsc
- jed: scitas_jed.pvsc
- kuma: scitas_kuma.pvsc
-
In Paraview, prepare the connection by clicking on
Connect
button or going in theFile > Connect...
menu. This will open a dialog box where you can load thescitas_<cluster>.pvsc
file via theLoad Servers
button. -
Choose the proper server and click
Connect
-
This will open a dialog box where you can select some options for the job that will be submitted to the cluster.
Running Paraview in Client Server Mode via Slurm#
To set up ParaView with a remote server on the cluster [cluster]
, follow these steps. You'll need to open two terminals on your local computer. Keep both terminals running for the entire duration of your ParaView session.
Terminal 1: Start the ParaView Server
- Open a terminal and connect to the cluster via SSH.
- Start the ParaView server by running the following commands in order:
After running the commands, you will see the following output:
$ salloc --nodes=1 --ntasks-per-node=1 -c 1 --gres=gpu:1 -p h100 --time=01:00:00 $ module load gcc openmpi paraview $ srun pvserver --force-offscreen-rendering
Take note of theWaiting for client... Connection URL: cs://[node name]:11111 Accepting connection(s): [node name]:11111
[node name]
, as you will need it to configure the SSH connection in Terminal 2.
Terminal 2: Set Up SSH Port Forwarding
Open a second terminal and connect to the cluster using SSH with port forwarding enabled. Replace [node name]
with the hostname obtained from the previous step, [username]
with your username and [cluster]
with the name of the cluster targeted (kuma for instance):
Open ParaView on your local computer. Go to File > Connect…. Add a new server and configure the connection settings as follows: (Provide the exact configuration details or a screenshot here if needed.)