diff --git a/src/paraview/README.md b/src/paraview/README.md new file mode 100644 index 0000000..b3a9c2e --- /dev/null +++ b/src/paraview/README.md @@ -0,0 +1,29 @@ +# Introduction + +ParaView is an open source post-processing visualization engine. + +[Paraview Website](https://www.paraview.org/) + +# Paraview - Server (pvserver) + +## Pre-requisites +* Install in your workstation Paraview-Desktop, recommended the same version as the Server +```bash +https://www.paraview.org/paraview-downloads/download.php?submit=Download&version=v5.13&type=binary&os=Windows&downloadFile=ParaView-5.13.2-Windows-Python3.10-msvc2017-AMD64.msi +``` +## Instructions + +* From the **submit** node, run the `start_paraview.sh` script each time you need to launch paraview-server + +```bash + ./start_paraview.sh +``` +* Read carefully the information displayed from the script, it contains important information to create the connection between the desktop application and pvserver + +# Paraview - GUI +## Instructions +* From the **submit** node, start an interactive session, with X11 activated (Important) +```bash + salloc --x11 --mem=10Gb +``` +* Run the script `paraview_GUI.sh` \ No newline at end of file diff --git a/src/paraview/paraview_GUI.sh b/src/paraview/paraview_GUI.sh new file mode 100644 index 0000000..8038b94 --- /dev/null +++ b/src/paraview/paraview_GUI.sh @@ -0,0 +1,14 @@ +#!/encs/bin/tcsh + +echo "Loading modules" +module load GCC/12.3.0 -s +module load OpenMPI/4.1.5 -s +module load ParaView/5.13.2 -s + +mkdir -p /speed-scratch/$USER/run-user +chmod 700 /speed-scratch/$USER/run-user +setenv XDG_RUNTIME_DIR /speed-scratch/$USER/run-user +setenv PSM3_DEVICES 'self,shm' +echo "Loading Paraview GUI ..." +srun --mpi=pmix paraview + diff --git a/src/paraview/run_paraview.sh b/src/paraview/run_paraview.sh new file mode 100644 index 0000000..5cd9577 --- /dev/null +++ b/src/paraview/run_paraview.sh @@ -0,0 +1,32 @@ +#!/encs/bin/tcsh + +module load GCC/12.3.0 -s +module load OpenMPI/4.1.5 -s +module load ParaView/5.13.2 -s +module load python/3.11.6/default -s + +setenv PSM3_DEVICES 'self,shm' + +# Get the current node and user information +set node = `hostname -s` +set user = `whoami` + +# Get an available port for Jupyter +set port = `python -c 'import socket; s=socket.socket(); s.bind(("", 0)); print(s.getsockname()[1]); s.close()'` + +# Print SSH tunneling instructions +echo "To connect to the compute node ${node} on speed.encs.concordia.ca running your Paraview server, \ +use the following SSH command in a new terminal on your workstation/laptop: \ +ssh -L ${port}:${node}:${port} ${user}@speed.encs.concordia.ca \ +Open Paraview installed on your workstation as described in https://github.com/NAG-DevOps/speed-hpc/tree/master/src/paraview \ +File - Connect - Add server and fill in the details:\ +Name: HPC\ +Server Type: Client/Server\ +Startup Type: Manual\ +Host: localhost\ +Port: ${port}\ +Save and connect\n\ +Once finished working with Paraview, disconnect the session: File - Disconnect and close the application" + +echo "Starting Paraview server. DO NOT CLOSE THIS WINDOWS" +mpirun pvserver -p ${port} diff --git a/src/paraview/start_paraview.sh b/src/paraview/start_paraview.sh new file mode 100644 index 0000000..30db853 --- /dev/null +++ b/src/paraview/start_paraview.sh @@ -0,0 +1 @@ +srun --mem=10G -c4 --mail-type=ALL $PWD/run_paraview.sh