| Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
howto:paraview [2022/04/05 10:39] ccrosby |
howto:paraview [2025/04/14 10:59] (current) ccrosby [Running Paraview] |
| ====== Running Paraview ====== | ====== Running Paraview ====== |
| | |
| | === Video tutorial - Parallel ParaView in client / server mode === |
| | Watch this [[https://youtu.be/xuvOtrX6j64|video tutorial]] |
| | |
| | === Alternative method - ParaView using GPUs in the cluster === |
| | {{ :howto:paraview_user_guide_version_1.2.pdf |}} |
| |
| ===== Introduction ===== | ===== Introduction ===== |
| [[https://paraview.org|Paraview]] is an extremely capable open-source programme for visualising simulation results. It supports a wide variety of file formats and is used in many different scientific and engineering disciplines. The code is designed to make effective use of parallel processing in order to process extremely large datasets. There are many recent versions installed on Lengau and they can be used in a multitude of different ways. The recommended method involves running a Paraview server in parallel on one or more compute nodes and using the Paraview graphics client on your own workstation to connect to that server by way of an ssh tunnel. The method is described here: | [[https://paraview.org|Paraview]] is an extremely capable open-source programme for visualising simulation results. It supports a wide variety of file formats and is used in many different scientific and engineering disciplines. The code is designed to make effective use of parallel processing in order to process extremely large datasets. There are many recent versions installed on Lengau and they can be used in a multitude of different ways. The recommended method involves running a Paraview server in parallel on one or more compute nodes and using the Paraview graphics client on your own workstation to connect to that server by way of an ssh tunnel. The method is described [[howto:paraview#preferred_method_-_parallel_using_compute_nodes_and_remote_front_end|here]] |
| |
| There are several Paraview installations: | There are several Paraview installations: |
| - A standard binary distribution Paraview-5.8.1 in ''/apps/chpc/compmech/ParaView-5.8.0-MPI-Linux-Python3.7-64bit'' | - A standard binary distribution Paraview-5.8.1 in ''/apps/chpc/compmech/ParaView-5.8.0-MPI-Linux-Python3.7-64bit'' |
| - A custom-compiled server version of Paraview-5.8.1, accessible by way of the module ''chpc/compmech/Paraview/5.8.1-osmesa'' | - A custom-compiled server version of Paraview-5.8.1, accessible by way of the module ''chpc/compmech/Paraview/5.8.1-osmesa'' |
| | - A standard binary server version of ParaView-5.12.1, accessible by way of the module ''chpc/compmech/Paraview/5.12.1-osmesa'' |
| |
| |
| ==== Single processor mode ==== | ==== Single processor mode ==== |
| Load the module ''module load chpc/compmech/Paraview/5.4.1-VNC'', and type ''vglrun paraview'' at the command prompt. | Load the module ''module load chpc/compmech/Paraview/5.4.1-VNC'', and type ''vglrun paraview'' at the command prompt. |
| | |
| | |
| | ==== Preferred method - Parallel using compute nodes, and remote front end ==== |
| | This method makes use of Mesa and avoids the use of the viz node and VNC: |
| | * Log in to the cluster, and get an exclusive X-enabled PBS session on a compute node ''qsub -I -X -l select=1:ncpus=24:mpiprocs=24 -q smp -P MECH1234 -l walltime=4:00:00'' |
| | * In this terminal, load up the module ''module load chpc/compmech/Paraview/5.4.1'' |
| | * In this terminal, start up the paraview server with the command <code>mpiexec -np 24 pvserver --mpi --mesa-llvm --use-offscreen-rendering</code>. Although you will not launch any graphics from this terminal, the software needs the X-capability to be available. |
| | * On your workstation, build an ssh-tunnel through lengau.chpc.ac.za to port 11111 on your interactive compute node, let's call it cnode1234 for argument's sake. Forward this port to port 11111 on your workstation. The command in Linux is ''ssh -f jblogs@lengau.chpc.ac.za -L 11111:cnode1234:11111 -N'' |
| | * Launch Paraview (exactly the same version) on your workstation, which can be running any operating system that supports Paraview. It does not need to be Linux. |
| | * Use the "Connect" menu in Paraview to set up port 11111@localhost as a Paraview server. Connect to this server. |
| | * Load the data into Paraview in the usual fashion. |
| | * Data processing and rendering will happen on the compute node, display and interaction on your local workstation. |
| | * If you want to use Paraview-5.8.1 for this, load the ''OSmesa'' module of Paraview, as well as an appropriate MPI module on the compute node before starting the Paraview server: <code>module load chpc/compmech/Paraview/5.8.1-osmesa |
| | module load chpc/compmech/mpich/4.0/gcc-9.2.0-ssh |
| | mpiexec -np 24 pvserver --mpi --force--offscreen-rendering </code> |
| | * For the latest version 5.12.1, the process is somewhat simpler. There is no need to load the mpich module and the --mpi command line option is not required:<code>module load chpc/compmech/Paraview/5.12.1-osmesa |
| | mpiexec -np 24 pvserver --force--offscreen-rendering </code> |
| | |
| |
| ==== Parallel on the viz node ==== | ==== Parallel on the viz node ==== |
| * Load the parallel data set. | * Load the parallel data set. |
| |
| ==== Parallel using compute nodes, and remote front end ==== | |
| This method makes use of Mesa and avoids the use of the viz node and VNC: | |
| * Log in to the cluster, and get an exclusive X-enabled PBS session on a compute node ''qsub -I -X -l select=1:ncpus=24:mpiprocs=24 -q smp -P MECH1234 -l walltime=4:00:00'' | |
| * In this terminal, load up the module ''module load chpc/compmech/Paraview/5.4.1'' | |
| * In this terminal, start up the paraview server with the command <code>mpiexec -np 24 pvserver --mpi --mesa-llvm --use-offscreen-rendering</code>. Although you will not launch any graphics from this terminal, the software needs the X-capability to be available. | |
| * On your workstation, build an ssh-tunnel through lengau.chpc.ac.za to port 11111 on your interactive compute node, let's call it cnode1234 for argument's sake. Forward this port to port 11111 on your workstation. The command in Linux is ''ssh -f jblogs@lengau.chpc.ac.za -L 11111:cnode1234:11111 -N'' | |
| * Launch Paraview (exactly the same version) on your workstation, which can be running any operating system that supports Paraview. It does not need to be Linux. | |
| * Use the "Connect" menu in Paraview to set up port 11111@localhost as a Paraview server. Connect to this server. | |
| * Load the data into Paraview in the usual fashion. | |
| * Data processing and rendering will happen on the compute node, display and interaction on your local workstation. | |
| * If you want to use Paraview-5.8.1 for this, load the ''OSmesa'' module of Paraview, as well as an appropriate MPI module on the compute node before starting the Paraview server: <code>module load chpc/compmech/Paraview/5.8.1-osmesa | |
| module load chpc/compmech/mpich/4.0/gcc-9.2.0-ssh | |
| mpiexec -np 24 pvserver --mpi --force--offscreen-rendering </code> | |
| |
| |